Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     var srv = new MdnMonitorWinSrv();
     var servicesToRun = new ServiceBase[] { srv };
     if(Environment.UserInteractive)
     {
         srv.StartService(args);
         Console.WriteLine("MdnMonitorWinSrv running, press Enter key to stop...");
         Console.Read();
         srv.Stop();
     }
     else
     {
         ServiceBase.Run(servicesToRun);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            var srv           = new MdnMonitorWinSrv();
            var servicesToRun = new ServiceBase[] { srv };

            if (Environment.UserInteractive)
            {
                srv.StartService(args);
                Console.WriteLine("MdnMonitorWinSrv running, press Enter key to stop...");
                Console.Read();
                srv.Stop();
            }
            else
            {
                ServiceBase.Run(servicesToRun);
            }
        }
Exemplo n.º 3
0
 internal Diagnostics(MdnMonitorWinSrv service)
 {
     m_logger = Log.For(service);
 }
Exemplo n.º 4
0
 internal Diagnostics(MdnMonitorWinSrv service)
 {
     m_logger = Log.For(service);
 }