C# Class Elmah.ErrorTweetModule

HTTP module implementation that posts tweets (short messages usually limited to 140 characters) about unhandled exceptions in an ASP.NET Web application to a Twitter account.
This module requires that the hosting application has permissions send HTTP POST requests to another Internet domain.
Inheritance: HttpModuleBase, IExceptionFiltering
Afficher le fichier Open project: elmah/Elmah

Méthodes protégées

Méthode Description
GetConfig ( ) : object

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

GetErrorLog ( System.Web.HttpContextBase context ) : Elmah.ErrorLog

Gets the ErrorLog instance to which the module will log exceptions.

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

Logs an exception and its context to the error log.

OnError ( object sender, EventArgs args ) : 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.

Private Methods

Méthode Description
AsyncArgs ( ) : object[]
GetSetting ( System.Collections.IDictionary config, string name, string defaultValue ) : string
OnGetRequestStreamCompleted ( IAsyncResult ar ) : void
OnGetRequestStreamCompleted ( IAsyncResult ar, WebRequest request, byte data ) : void
OnGetResponseCompleted ( IAsyncResult ar ) : void
OnGetResponseCompleted ( IAsyncResult ar, WebRequest request ) : void
OnWebPostError ( WebRequest request, Exception e ) : void

Method Details

GetConfig() protected méthode

Gets the configuration object used by OnInit to read the settings for module.
protected GetConfig ( ) : object
Résultat object

GetErrorLog() protected méthode

Gets the ErrorLog instance to which the module will log exceptions.
protected GetErrorLog ( System.Web.HttpContextBase context ) : Elmah.ErrorLog
context System.Web.HttpContextBase
Résultat Elmah.ErrorLog

LogException() protected méthode

Logs an exception and its context to the error log.
protected LogException ( Exception e, System.Web.HttpContextBase context ) : void
e System.Exception
context System.Web.HttpContextBase
Résultat void

OnError() protected méthode

The handler called when an unhandled exception bubbles up to the module.
protected OnError ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

OnErrorSignaled() protected méthode

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

OnFiltering() protected méthode

Raises the Filtering event.
protected OnFiltering ( ExceptionFilterEventArgs args ) : void
args ExceptionFilterEventArgs
Résultat void

OnInit() protected méthode

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