/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { #if DEBUG if (Debugger.IsAttached) { AlarmWorkflowService service = new AlarmWorkflowService(); service.OnStart(); service.Stop(); service.Dispose(); return; } #endif ServiceBase.Run(new AlarmWorkflowService()); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { #if DEBUG if (Debugger.IsAttached) { AlarmWorkflowService service = new AlarmWorkflowService(); service.OnStart(); service.Stop(); service.Dispose(); return; } #endif ServiceBase.Run(new AlarmWorkflowService()); }