protected virtual void NotifyError(ErrorSummary es) { es.LogTo(log); if(ErrorEvent != null) { ErrorEvent(es); } }
protected void NotifyError(ErrorSummary summary) { if (ErrorEvent != null) { ErrorEvent(summary); } else { summary.LogTo(log); } }
protected void NotifyError(ErrorSummary es) { if (ErrorEvent == null) { es.LogTo(log); return; } try { ErrorEvent(es); } catch (Exception e) { log.Warn("Exception occurred when processing application ErrorEvent handlers", e); ErrorEvent(new ErrorSummary(Severity.Information, SummaryErrorCode.UserException, "Exception occurred when processing application ErrorEvent handlers", e)); } }