示例#1
0
 protected virtual void NotifyError(ErrorSummary es)
 {
     es.LogTo(log);
     if(ErrorEvent != null)
     {
         ErrorEvent(es);
     }
 }
示例#2
0
 protected void NotifyError(ErrorSummary summary)
 {
     if (ErrorEvent != null)
     {
         ErrorEvent(summary);
     }
     else
     {
         summary.LogTo(log);
     }
 }
示例#3
0
        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));
            }
        }