C# Class Castle.ActiveRecord.SessionScopeWebModule

HttpModule to set up a session for the request lifetime. SessionScope
To install the module, you must:

Add the module to the httpModules configuration section within system.web

Inheritance: IHttpModule
Datei anzeigen Open project: shosca/ActiveRecord

Protected Properties

Property Type Description
SessionKey String

Public Methods

Method Description
Dispose ( ) : void

Disposes of the resources (other than memory) used by the module that implements .

Init ( System.Web.HttpApplication app ) : void

Initialize the module.

Private Methods

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

Called when request is started, create a session for the request

OnEndRequest ( object sender, EventArgs e ) : void

Called when the request ends, dipose of the scope

Method Details

Dispose() public method

Disposes of the resources (other than memory) used by the module that implements .
public Dispose ( ) : void
return void

Init() public method

Initialize the module.
public Init ( System.Web.HttpApplication app ) : void
app System.Web.HttpApplication The app.
return void

Property Details

SessionKey protected_oe static_oe property

The key used to store the session in the context items
protected static String SessionKey
return String