Exemple #1
0
 private IAsyncOperationInternal AddContinuation(IAsyncOperationInternal asyncOperation)
 {
     if (!IsCompleted)
     {
         lock (_continuations)
         {
             if (!IsCompleted)
             {
                 _continuations.Add(asyncOperation);
                 return(asyncOperation);
             }
         }
     }
     asyncOperation.SetResult(_result, true);
     return(asyncOperation);
 }
 public AsyncOperationCallback(IAsyncOperationInternal asyncOperation)
 {
     Should.NotBeNull(asyncOperation, "asyncOperation");
     _asyncOperation = asyncOperation;
 }
Exemple #3
0
 public AsyncOperationCallback(IAsyncOperationInternal asyncOperation)
 {
     Should.NotBeNull(asyncOperation, "asyncOperation");
     _asyncOperation = asyncOperation;
 }