/// <summary> /// Der Haupteinstiegspunkt für die Anwendung. /// </summary> static void Main() { #if DEBUG Service1 blocker = new Service1(); blocker.OnDebug(); System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); #else ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new Service1() }; ServiceBase.Run(ServicesToRun); #endif }