C# Class PerplexMail.HttpStatisticsModule

This module tracks any events (statistics) that are triggered from e-mails send by the e-mailpackage.
Inheritance: IHttpModule
ファイルを表示 Open project: PerplexInternetmarketing/PerplexMail-for-Umbraco

Public Methods

Method Description
Dispose ( ) : void
Init ( System.Web.HttpApplication context ) : void

This method is called by underlying code and should not be called directly.

context_BeginRequest ( object sender, EventArgs e ) : void

This method is triggered for EVERY request the website gets. This includes html files, images, stylesheets etc.

processMailStatistics ( HttpContext c ) : void

This method processes e-mail statistics

registerEvent ( HttpContext c ) : void
sendResponse ( HttpResponse r, int statusCode, string content = "", string ContentType = "text/html" ) : void

Directly sends a response to the user and terminates the current request

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Init() public method

This method is called by underlying code and should not be called directly.
public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication The application context
return void

context_BeginRequest() public method

This method is triggered for EVERY request the website gets. This includes html files, images, stylesheets etc.
public context_BeginRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

processMailStatistics() public method

This method processes e-mail statistics
public processMailStatistics ( HttpContext c ) : void
c System.Web.HttpContext The context of the request
return void

registerEvent() public method

public registerEvent ( HttpContext c ) : void
c System.Web.HttpContext
return void

sendResponse() public method

Directly sends a response to the user and terminates the current request
public sendResponse ( HttpResponse r, int statusCode, string content = "", string ContentType = "text/html" ) : void
r System.Web.HttpResponse The response that is to be sent to the user
statusCode int The status code, for example 200 or 404 or 500
content string Any relevant content that is to be sent to the user
ContentType string The type of the content that is to be sent to the user. Default is text/html
return void