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); }
public void CopyHandles(WaitHandle[] array, int offset) { _state.CopyHandles(this, array, offset); }