C# Class GSoft.Dynamite.ServiceLocator.SPWebLifetimeScopeProvider

Lifetime scope provider the help share state at the SPWeb-level
Inheritance: SPLifetimeScopeProvider
Show file Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
EndLifetimeScope ( ) : void

This implementation should be empty because SPWeb-bound scope should live as long as their parent SPSite scope, which in turn lives as long as the application container.

EnsureWebScope ( SPWeb web ) : ILifetimeScope

Ensure the creation of a web-specific lifetime scope (or reuse an existing one). Don't dispose this instance, as it is meant to live as long as the root app container.

SPWebLifetimeScopeProvider ( ISharePointContainerProvider containerProvider ) : System

Initializes a new instance of the SPWebLifetimeScopeProvider class.

Private Methods

Method Description
EnsureWebScopeInternal ( SPWeb web ) : ILifetimeScope

Method Details

EndLifetimeScope() public method

This implementation should be empty because SPWeb-bound scope should live as long as their parent SPSite scope, which in turn lives as long as the application container.
public EndLifetimeScope ( ) : void
return void

EnsureWebScope() public method

Ensure the creation of a web-specific lifetime scope (or reuse an existing one). Don't dispose this instance, as it is meant to live as long as the root app container.
public EnsureWebScope ( SPWeb web ) : ILifetimeScope
web SPWeb The current web
return ILifetimeScope

SPWebLifetimeScopeProvider() public method

Initializes a new instance of the SPWebLifetimeScopeProvider class.
public SPWebLifetimeScopeProvider ( ISharePointContainerProvider containerProvider ) : System
containerProvider ISharePointContainerProvider /// The container provider. ///
return System