public void ExecuteWindowsService() { var ws = new WindowsService(); var _eventHandle = new MyEventWaitHandler(false, EventResetMode.AutoReset, "WindowsApplicationMode"); ws.Execute(_eventHandle); _eventHandle.Set(); }
static void Method() { _eventHandle1.Set(); _eventHandle2.Set(); }
static void Method() { _eventHandle.Set(); }