Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
 internal Diagnostics(DnsResponderWinSrv service)
 {
     m_logger = Log.For(service);
 }
Ejemplo n.º 4
0
 internal Diagnostics(DnsResponderWinSrv service)
 {
     m_logger = Log.For(service);
 }