private void ReportErrors(IExecutionStrategy strategy, Action <Exception> errorReporter, Exception taskException) { try { strategy.ReportErrors(errorReporter, taskException); } catch { } }
private static void ReportErrors(IExecutionStrategy strategy, Action <Exception> errorReporter, Exception taskException) { try { strategy.ReportErrors(errorReporter, taskException); } // ReSharper disable once EmptyGeneralCatchClause catch { // Ignore errors from the error reporter. } }
/// <summary> /// Executes the error reporter. /// </summary> /// <param name="action">The action.</param> /// <param name="exception">The exception.</param> public void ReportErrors(Action <Exception> action, Exception exception) { _default.ReportErrors(action, exception); }