C# Class Zen.Core.MVC4.Web.RequestLifetimeScopeProvider

Creates and disposes HTTP request based lifetime scopes.
The provider is notified when a HTTP request ends by the RequestLifetimeHttpModule.
Inheritance: ILifetimeScopeProvider
ファイルを表示 Open project: holinov/Zen.Core

Private Properties

Property Type Description
GetLifetimeScopeCore IAppScope

Public Methods

Method Description
EndLifetimeScope ( ) : void

Ends the current HTTP request lifetime scope.

GetLifetimeScope ( Action configurationAction ) : IAppScope

Gets a nested lifetime scope that services can be resolved from.

RequestLifetimeScopeProvider ( IAppScope container ) : System

Initializes a new instance of the RequestLifetimeScopeProvider class.

Private Methods

Method Description
GetLifetimeScopeCore ( Action configurationAction ) : IAppScope

Method Details

EndLifetimeScope() public method

Ends the current HTTP request lifetime scope.
public EndLifetimeScope ( ) : void
return void

GetLifetimeScope() public method

Gets a nested lifetime scope that services can be resolved from.
public GetLifetimeScope ( Action configurationAction ) : IAppScope
configurationAction Action /// A configuration action that will execute during lifetime scope creation. ///
return IAppScope

RequestLifetimeScopeProvider() public method

Initializes a new instance of the RequestLifetimeScopeProvider class.
public RequestLifetimeScopeProvider ( IAppScope container ) : System
container IAppScope The parent container, usually the application container.
return System