C# Class GSoft.Dynamite.ServiceLocator.SPWebLifetimeScopeProvider

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

Méthodes publiques

Méthode 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

Méthode Description
EnsureWebScopeInternal ( SPWeb web ) : ILifetimeScope

Method Details

EndLifetimeScope() public méthode

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
Résultat void

EnsureWebScope() public méthode

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
Résultat ILifetimeScope

SPWebLifetimeScopeProvider() public méthode

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