public void ExecuteWindowsService()
    {
        var ws           = new WindowsService();
        var _eventHandle = new MyEventWaitHandler(false, EventResetMode.AutoReset, "WindowsApplicationMode");

        ws.Execute(_eventHandle);
        _eventHandle.Set();
    }
Example #2
0
 static void Method()
 {
     _eventHandle1.Set();
     _eventHandle2.Set();
 }
 static void Method()
 {
     _eventHandle.Set();
 }