/// <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);
Exemple #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);
 /// <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);
Exemple #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);