/// <summary>
 /// Create a faulted ended <see cref="IAsyncOperationWithProgress{TResult, TProgress}"/>.
 /// </summary>
 /// <param name="ex">Fault of the operation.</param>
 /// <returns>A faulted ended <see cref="IAsyncOperationWithProgress{TResult, TProgress}"/>.</returns>
 public static IAsyncOperationWithProgress <T, TProgress> CreateFault(Exception ex) => FaultedAsyncInfo <T, TProgress> .Create(ex);
Пример #2
0
 /// <summary>
 /// Create a faulted ended <see cref="IAsyncActionWithProgress{TProgress}"/>.
 /// </summary>
 /// <param name="ex">Fault of the action.</param>
 /// <returns>A faulted ended <see cref="IAsyncActionWithProgress{TProgress}"/>.</returns>
 public static IAsyncActionWithProgress <TProgress> CreateFault(Exception ex) => FaultedAsyncInfo <VoidResult, TProgress> .Create(ex);
Пример #3
0
 /// <summary>
 /// Create a faulted ended <see cref="IAsyncAction"/>.
 /// </summary>
 /// <param name="ex">Fault of the action.</param>
 /// <returns>A faulted ended <see cref="IAsyncAction"/>.</returns>
 public static IAsyncAction CreateFault(Exception ex) => FaultedAsyncInfo <VoidResult, VoidProgress> .Create(ex);
Пример #4
0
 /// <summary>
 /// Create a faulted ended <see cref="IAsyncOperation{TResult}"/>.
 /// </summary>
 /// <param name="ex">Fault of the operation.</param>
 /// <returns>A faulted ended <see cref="IAsyncOperation{TResult}"/>.</returns>
 public static IAsyncOperation <T> CreateFault(Exception ex) => FaultedAsyncInfo <T, VoidProgress> .Create(ex);