/// <summary> /// Constructor. /// </summary> /// <param name="ar">The async result to associate with this instance.</param> public AsyncOperation(IAsyncResultDiagnostics ar) { this.Context = AsyncTracker.Context; this.StartTime = DateTime.UtcNow; this.IsCompleted = false; this.AsyncResult = ar; }
public AsyncEvent(IAsyncResultDiagnostics owner, bool initialState) { this.owner = owner; this.wait = new ManualResetEvent(initialState); this.isWaiting = false; }