Ejemplo n.º 1
0
 protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult)
 {
     try
     {
         AsyncFactory.ToEnd(asyncResult);
         PostExecute(context);
     }
     catch (OperationCanceledException) when(context.IsCancellationRequested)
     {
         context.MarkCanceled();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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?
     }
 }
Ejemplo n.º 4
0
 protected override BookmarkResumptionResult OnEndResumeBookmark(IAsyncResult result)
 => AsyncFactory <BookmarkResumptionResult> .ToEnd(result);
Ejemplo n.º 5
0
 protected override void OnEndPersist(IAsyncResult result)
 => AsyncFactory.ToEnd(result);
Ejemplo n.º 6
0
 private void End(IAsyncResult result)
 {
     AsyncFactory.ToEnd(result);
 }
 protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult)
 {
     AsyncFactory.ToEnd(asyncResult);
     PostExecute(context);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 10
0
 public static DicomDirectory EndOpen(IAsyncResult result)
 {
     return(AsyncFactory.ToEnd <DicomDirectory>(result));
 }
Ejemplo n.º 11
0
 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);
Ejemplo n.º 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));
 }