Пример #1
0
        /// <summary>
        ///     The main entry point for the application.
        /// </summary>
        private static void Main()
        {
            Global.Initialize();

#if DEBUG
            var mainWorker = new MainWorker();
            mainWorker.Start();

            while (mainWorker.IsWorking)
            {
                Thread.Sleep(500);
            }
#else            
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new InkMonServiceController()
            };


            ServiceBase.Run(ServicesToRun);
#endif
        }
Пример #2
0
 public InkMonServiceController()
 {
     InitializeComponent();
     ServiceName = "InkMonService";
     _mainWorker = new MainWorker();
 }