namespace NeDvachAPI { public class BufferFill { public static bool FillBuffer(string board) //method to get buffer of information, which is being ran while API is started { List posts = DBchat.ThreadsList(board); APIThreadBuffer.WriteThreadPreviewsBuffer(posts); Console.WriteLine("Заполняю буфер оп-постами"); for (int threadId = 1; threadId <= 4; threadId++) { APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board , threadId)); Console.WriteLine("Добавляю буферизую тред " + threadId); } return true; } } }