public void TestMethod1() { NetCommUDP udp = new NetCommUDP(); //Thread t = new Thread(() => //{ // Thread.Sleep(10000); // udp.Terminate(); //}); ////t.Start(); udp.Listen(); }
public MainServer(ItemsReceived itemsReceived) { LOG.Info("Initializing main server..."); _db = new Database(); _netCommUdp = new NetCommUDP(); _tcpServer = new NetCommTCP(itemsReceived); ProcessStartUpParameters(); ScheduleDatabaseBackup(); LOG.Info("Main server initialized."); }