C# Class Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule

Inheritance: IHttpModule
显示文件 Open project: castleproject/Windsor Class Usage Examples

Public Methods

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

Protected Methods

Method Description
Application_EndRequest ( Object sender, EventArgs e ) : void

Private Methods

Method Description
EnsureInitialized ( ) : void
GetScope ( ) : ILifetimeScope
GetScope ( HttpContext context, bool createIfNotPresent ) : ILifetimeScope
YieldScope ( ) : ILifetimeScope

Returns current request's scope and detaches it from the request context. Does not throw if scope or context not present. To be used for disposing of the context.

Method Details

Application_EndRequest() protected method

protected Application_EndRequest ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void

Dispose() public method

public Dispose ( ) : void
return void

Init() public method

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
return void