/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { ServiceBase[] ServicesToRun; DnsResponderWinSrv srv = new DnsResponderWinSrv(); ServicesToRun = new ServiceBase[] { srv }; if (Environment.UserInteractive) { srv.StartService(args); Console.WriteLine("DnsResponderWinSrv running, press Enter key to stop..."); Console.Read(); srv.Stop(); } else { ServiceBase.Run(ServicesToRun); } }
internal Diagnostics(DnsResponderWinSrv service) { m_logger = Log.For(service); }