Exemple #1
0
 private static async Task ReportErrorsAsync(IExecutionStrategy strategy, Func <Exception, Task> errorReporter,
                                             Exception taskException)
 {
     try
     {
         await strategy.ReportErrorsAsync(errorReporter, taskException);
     }
     // ReSharper disable once EmptyGeneralCatchClause
     catch
     {
         // Ignore errors from the error reporter.
     }
 }
Exemple #2
0
 /// <summary>
 /// Executes the error reporter.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="exception">The exception.</param>
 public Task ReportErrorsAsync(Func <Exception, Task> action, Exception exception)
 {
     return(_default.ReportErrorsAsync(action, exception));
 }