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