Exemplo n.º 1
0
 public void InitAgents()
 {
     Task.Run(() =>
     {
         _agents.GetAccountsFromBaseFile();
         while (true)
         {
             if (_agents.AgentsReady)
             {
                 break;
             }
         }
         lock (LogIO.locker) logging.Invoke(LogIO.mainLog, new Log()
             {
                 UserName = null, Date = DateTime.Now, LogMessage = $"Agents inited! {_agents.CountAgents} agents are ready", Method = "Model.InitAgents"
             });
         IsAgentsInited = true;
     });
 }