Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 public AsyncEvent(IAsyncResultDiagnostics owner, bool initialState)
 {
     this.owner     = owner;
     this.wait      = new ManualResetEvent(initialState);
     this.isWaiting = false;
 }