/// <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 }
public InkMonServiceController() { InitializeComponent(); ServiceName = "InkMonService"; _mainWorker = new MainWorker(); }