Example #1
0
 protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult)
 {
     try
     {
         AsyncFactory.ToEnd(asyncResult);
         PostExecute(context);
     }
     catch (OperationCanceledException) when(context.IsCancellationRequested)
     {
         context.MarkCanceled();
     }
 }
Example #2
0
 protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult)
 {
     try
     {
         AsyncFactory.ToEnd(asyncResult);
         PostExecute(context, (context.UserState as Tuple <TState, CancellationTokenSource>).Item1);
     }
     catch (OperationCanceledException) when(context.IsCancellationRequested)
     {
         context.MarkCanceled();
     }
 }
Example #3
0
 protected sealed override T EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
 {
     try
     {
         return(AsyncFactory <T> .ToEnd(result));
     }
     catch (OperationCanceledException)
     {
         if (context.IsCancellationRequested)
         {
             context.MarkCanceled();
         }
         else
         {
             throw;
         }
         return(default(T));    // or throw?
     }
 }
 protected override BookmarkResumptionResult OnEndResumeBookmark(IAsyncResult result)
 => AsyncFactory <BookmarkResumptionResult> .ToEnd(result);
 protected override void OnEndPersist(IAsyncResult result)
 => AsyncFactory.ToEnd(result);
Example #6
0
 private void End(IAsyncResult result)
 {
     AsyncFactory.ToEnd(result);
 }
 protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult)
 {
     AsyncFactory.ToEnd(asyncResult);
     PostExecute(context);
 }
Example #8
0
 public static void EndSend(this DicomClient @this, IAsyncResult result)
 {
     AsyncFactory.ToEnd(result);
 }
 public override string EndgetLastError(IAsyncResult result)
 {
     return(AsyncFactory <string> .ToEnd(result));
 }
Example #10
0
 public static DicomDirectory EndOpen(IAsyncResult result)
 {
     return(AsyncFactory.ToEnd <DicomDirectory>(result));
 }
 public static void EndWrite(this DicomFileWriter @this, IAsyncResult result)
 {
     AsyncFactory.ToEnd(result);
 }
 public override string EndsendRequestXML(IAsyncResult result)
 {
     return(AsyncFactory <string> .ToEnd(result));
 }
 public override string EndconnectionError(IAsyncResult result)
 {
     return(AsyncFactory <string> .ToEnd(result));
 }
 public override string[] Endauthenticate(IAsyncResult result)
 {
     return(AsyncFactory <string[]> .ToEnd(result));
 }
 protected sealed override T EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
 {
     return(AsyncFactory <T> .ToEnd(result));
 }
 protected sealed override void EndTrack(IAsyncResult result)
 => AsyncFactory.ToEnd(result);
Example #17
0
 public static DicomReaderResult EndRead(this DicomReader @this, IAsyncResult result)
 {
     return(AsyncFactory.ToEnd <DicomReaderResult>(result));
 }
 public override int EndreceiveResponseXML(IAsyncResult result)
 {
     return(AsyncFactory <int> .ToEnd(result));
 }