Пример #1
0
 static IpcEventMessage()
 {
     //Ensure correct startstate behavior:
     if (StartState.GetSuccess(null) || StartState.GetCompleted(null) || StartState.GetHandleCount(null) > 0)
     {
         throw new ApplicationException("Code constraints failed.");
     }
     StartState.CopyHandles(null, null, 0);
     StartState.ContinueProcessing(null, null);
 }
Пример #2
0
 public void CopyHandles(WaitHandle[] array, int offset)
 {
     _state.CopyHandles(this, array, offset);
 }