C# 클래스 Elmah.ErrorMailModule

HTTP module that sends an e-mail whenever an unhandled exception occurs in an ASP.NET web application.
상속: HttpModuleBase, IExceptionFiltering
파일 보기 프로젝트 열기: elmah/Elmah 1 사용 예제들

보호된 메소드들

메소드 설명
CreateErrorFormatter ( ) : ErrorTextFormatter

Creates the ErrorTextFormatter implementation to be used to format the body of the e-mail.

GetConfig ( ) : object

Gets the configuration object used by OnInit to read the settings for module.

OnDisposingMail ( ErrorMailEventArgs args ) : void

Fires the DisposingMail event.

OnError ( Exception e, System.Web.HttpContextBase context ) : void

Reports the exception.

OnError ( object sender, EventArgs e ) : void

The handler called when an unhandled exception bubbles up to the module.

OnErrorSignaled ( object sender, ErrorSignalEventArgs args ) : void

The handler called when an exception is explicitly signaled.

OnFiltering ( ExceptionFilterEventArgs args ) : void

Raises the Filtering event.

OnInit ( System.Web.HttpApplication application ) : void

Initializes the module and prepares it to handle requests.

OnMailed ( ErrorMailEventArgs args ) : void

Fires the Mailed event.

OnMailing ( ErrorMailEventArgs args ) : void

Fires the Mailing event.

ReportError ( Error error ) : void

Schedules the error to be e-mailed synchronously.

ReportErrorAsync ( Error error ) : void

Schedules the error to be e-mailed asynchronously.

The default implementation uses the ThreadPool to queue the reporting.

SendMail ( MailMessage mail ) : void

Sends the e-mail using SmtpMail or SmtpClient.

비공개 메소드들

메소드 설명
CreateHtmlAttachment ( string name, string html ) : System.Net.Mail.Attachment
GetSetting ( System.Collections.IDictionary config, string name ) : string
GetSetting ( System.Collections.IDictionary config, string name, string defaultValue ) : string
ReportError ( object state ) : void

메소드 상세

CreateErrorFormatter() 보호된 메소드

Creates the ErrorTextFormatter implementation to be used to format the body of the e-mail.
protected CreateErrorFormatter ( ) : ErrorTextFormatter
리턴 ErrorTextFormatter

GetConfig() 보호된 메소드

Gets the configuration object used by OnInit to read the settings for module.
protected GetConfig ( ) : object
리턴 object

OnDisposingMail() 보호된 메소드

Fires the DisposingMail event.
protected OnDisposingMail ( ErrorMailEventArgs args ) : void
args ErrorMailEventArgs
리턴 void

OnError() 보호된 메소드

Reports the exception.
protected OnError ( Exception e, System.Web.HttpContextBase context ) : void
e System.Exception
context System.Web.HttpContextBase
리턴 void

OnError() 보호된 메소드

The handler called when an unhandled exception bubbles up to the module.
protected OnError ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

OnErrorSignaled() 보호된 메소드

The handler called when an exception is explicitly signaled.
protected OnErrorSignaled ( object sender, ErrorSignalEventArgs args ) : void
sender object
args ErrorSignalEventArgs
리턴 void

OnFiltering() 보호된 메소드

Raises the Filtering event.
protected OnFiltering ( ExceptionFilterEventArgs args ) : void
args ExceptionFilterEventArgs
리턴 void

OnInit() 보호된 메소드

Initializes the module and prepares it to handle requests.
protected OnInit ( System.Web.HttpApplication application ) : void
application System.Web.HttpApplication
리턴 void

OnMailed() 보호된 메소드

Fires the Mailed event.
protected OnMailed ( ErrorMailEventArgs args ) : void
args ErrorMailEventArgs
리턴 void

OnMailing() 보호된 메소드

Fires the Mailing event.
protected OnMailing ( ErrorMailEventArgs args ) : void
args ErrorMailEventArgs
리턴 void

ReportError() 보호된 메소드

Schedules the error to be e-mailed synchronously.
protected ReportError ( Error error ) : void
error Error
리턴 void

ReportErrorAsync() 보호된 메소드

Schedules the error to be e-mailed asynchronously.
The default implementation uses the ThreadPool to queue the reporting.
protected ReportErrorAsync ( Error error ) : void
error Error
리턴 void

SendMail() 보호된 메소드

Sends the e-mail using SmtpMail or SmtpClient.
protected SendMail ( MailMessage mail ) : void
mail System.Net.Mail.MailMessage
리턴 void