C# Класс PerplexMail.HttpStatisticsModule

This module tracks any events (statistics) that are triggered from e-mails send by the e-mailpackage.
Наследование: IHttpModule
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Init() публичный Метод

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
Результат void

context_BeginRequest() публичный Метод

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
Результат void

processMailStatistics() публичный Метод

This method processes e-mail statistics
public processMailStatistics ( HttpContext c ) : void
c System.Web.HttpContext The context of the request
Результат void

registerEvent() публичный Метод

public registerEvent ( HttpContext c ) : void
c System.Web.HttpContext
Результат void

sendResponse() публичный Метод

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
Результат void