示例#1
0
文件: Program.cs 项目: DM-TOR/nhin-d
 /// <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);
     }
 }
示例#2
0
文件: Program.cs 项目: blinds52/nhind
        /// <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);
            }
        }
示例#3
0
 internal Diagnostics(MdnMonitorWinSrv service)
 {
     m_logger = Log.For(service);
 }
示例#4
0
 internal Diagnostics(MdnMonitorWinSrv service)
 {
     m_logger = Log.For(service);
 }