public DummyAsyncResult (bool isCompleted, bool completedSynchronously, object state) { this.isCompleted = isCompleted; this.completedSynchronously = completedSynchronously; this.state = state; if (isCompleted) { asyncWaitHandle = new ManualResetEvent (true); } else { asyncWaitHandle = new ManualResetEvent (false); } }