Esempio n. 1
0
 protected override void OnPublishedCompleted(ProcessAsyncResult processAsyncResult)
 {
     base.OnPublishedCompleted(processAsyncResult);
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 protected override void SaveDocumentCompleted(ProcessAsyncResult processAsyncResult)
 {
     base.SaveDocumentCompleted(processAsyncResult);
 }
Esempio n. 4
0
        /// <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;
        }
Esempio n. 5
0
 /// <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)
 {
 }
Esempio n. 6
0
 /// <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);