コード例 #1
0
ファイル: CakeEngine.cs プロジェクト: twenzel/cake
 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.
     }
 }
コード例 #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));
 }