Пример #1
0
 public static void Main(string[] args)
 {
     DeviceStorage.LoadDevicesFromDb();
     new Thread(() =>
     {
         TcpServer server = new TcpServer(5555);
     }).Start();
     new Thread(() =>
     {
         while (true)
         {
             Scheduler.InvokeReadyEvents();
             Thread.Sleep(500);
         }
     }).Start();
     BuildWebHost(args).Run();
 }