static void Main(string[] args) { //Tracker.TcpServer.Main tcpServer = new Main(); //tcpServer.Start(); ////Console.WriteLine("{0} Protocols are configured", serverTasks.Count); //Console.WriteLine("Press [q] to quit the server"); //do //{ //} while (Console.ReadKey().KeyChar != 'q'); //tcpServer.Stop(); //Console.WriteLine("Done"); //Console.ReadLine(); server = new TcpServer.TcpServerSAEA.Main(); server.Start(); Console.ReadLine(); server.Stop(); }
protected override void OnStart(string[] args) { log.InfoFormat("{0}/OnStart", _fileNm); server.Start(); }