protected override void OnPublishedCompleted(ProcessAsyncResult processAsyncResult) { base.OnPublishedCompleted(processAsyncResult); }
/// <summary> /// Executed on the UI thread on completion of <see cref="OnPublishedAsync(object)"/>. /// </summary> /// <param name="processAsyncResult">The results of processing the method asynchronously.</param> protected virtual void OnPublishedCompleted(ProcessAsyncResult processAsyncResult) { return; }
protected override void SaveDocumentCompleted(ProcessAsyncResult processAsyncResult) { base.SaveDocumentCompleted(processAsyncResult); }
/// <summary> /// Extracts the <see cref="ProcessAsyncResult"/> from the antecendent. If the /// antecendent has exceptions then creates a new instance of <see cref="ProcessAsyncResult"/>. /// </summary> /// <param name="antecendent">The antecendent task.</param> /// <returns>An instance of <see cref="ProcessAsyncResult"/>.</returns> private ProcessAsyncResult GetProcessAsyncResult(Task<ProcessAsyncResult> antecendent) { ProcessAsyncResult asyncResult; if (antecendent.Exception != null) { asyncResult = new ProcessAsyncResult() { FlattenedAggregateException = antecendent.Exception.Flatten(), IsFaulted = true }; } else { asyncResult = antecendent.Result; } return asyncResult; }
/// <summary> /// Executed on the UI thread on completion of <see cref="SaveDocumentAsync"/>. /// </summary> /// <param name="processAsyncResult">The results of the async method.</param> protected virtual void SaveDocumentCompleted(ProcessAsyncResult processAsyncResult) { }
/// <summary> /// Executed on the UI thread on completion of <see cref="OnPublishedAsync"/>. /// </summary> /// <param name="processAsyncResult">The results of the async method.</param> protected abstract void OnPublishedAsyncCompleted(ProcessAsyncResult processAsyncResult);