static void Main(string[] args) { AppLogServer srv = new AppLogServer(); srv.Start(); Console.WriteLine("Press a key to stop..."); Console.ReadKey(); srv.Stop(); }
protected override void OnStart(string[] args) { srv = new AppLogServer(); srv.Start(); }