protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult) { try { AsyncFactory.ToEnd(asyncResult); PostExecute(context); } catch (OperationCanceledException) when(context.IsCancellationRequested) { context.MarkCanceled(); } }
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(); } }
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);
private void End(IAsyncResult result) { AsyncFactory.ToEnd(result); }
protected sealed override void EndExecute(AsyncCodeActivityContext context, IAsyncResult asyncResult) { AsyncFactory.ToEnd(asyncResult); PostExecute(context); }
public static void EndSend(this DicomClient @this, IAsyncResult result) { AsyncFactory.ToEnd(result); }
public override string EndgetLastError(IAsyncResult result) { return(AsyncFactory <string> .ToEnd(result)); }
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);
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)); }