C# Class Nancy.Bootstrappers.Windsor.NancyPerWebRequestScopeAccessor

Inheritance: IScopeAccessor
显示文件 Open project: NancyFx/Nancy.Bootstrappers.Windsor

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetScope ( CreationContext context ) : ILifetimeScope

Provides access to T:Castle.MicroKernel.Lifestyle.Scoped.IScopeCache for currently resolved component.

NancyPerWebRequestScopeAccessor ( ) : System.Web

Initializes a new instance of the NancyPerWebRequestScopeAccessor class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

GetScope() public method

Provides access to T:Castle.MicroKernel.Lifestyle.Scoped.IScopeCache for currently resolved component.
Thrown when scope cache could not be accessed.
public GetScope ( CreationContext context ) : ILifetimeScope
context Castle.MicroKernel.Context.CreationContext Current creation context
return ILifetimeScope

NancyPerWebRequestScopeAccessor() public method

Initializes a new instance of the NancyPerWebRequestScopeAccessor class.
public NancyPerWebRequestScopeAccessor ( ) : System.Web
return System.Web