C# Class i18n.LocalizingModule

HTTP module responsible for: 1. Implementing early URL localization 2. Installing our ResponseFilter into the ASP.NET pipeline.
LocalizingModule can be installed like this: IIS7+ Integrated mode: <system.webServer> <modules> <add name="i18n.LocalizingModule" type="i18n.LocalizingModule, i18n" /> </modules> </system.webServer> IIS7 Classic mode and IIS6: <system.web> <httpModules> <add name="i18n.LocalizingModule" type="i18n.LocalizingModule, i18n" /> <!-- #37 --> </httpModules> </system.web>
Inheritance: IHttpModule
Mostrar archivo Open project: turquoiseowl/i18n

Public Methods

Method Description
Dispose ( ) : void
Init ( System application ) : void
LocalizingModule ( ) : System
LocalizingModule ( IRootServices rootServices ) : System

Private Methods

Method Description
OnBeginRequest ( object sender, EventArgs e ) : void

Handler for the BeginRequest ASP.NET request pipeline event, where we inject our Early URL Localization logic.

OnPostRequestHandlerExecute ( object sender, EventArgs e ) : void
OnReleaseRequestState ( object sender, EventArgs e ) : void

Handler for the ReleaseRequestState ASP.NET request pipeline event. This event occurs late on in the pipeline but prior to the response being filtered. We take the opportunity to inject our i8n post-processing of the response.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Init() public method

public Init ( System application ) : void
application System
return void

LocalizingModule() public method

public LocalizingModule ( ) : System
return System

LocalizingModule() public method

public LocalizingModule ( IRootServices rootServices ) : System
rootServices IRootServices
return System