C# Class GSoft.Dynamite.ServiceLocator.SPSiteLifetimeScopeProvider

Lifetime scope provider the help share state at the SPSite-level
Inheritance: SPLifetimeScopeProvider
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
EndLifetimeScope ( ) : void

Disposes a lifetime scope and all its children. This implementation should be empty because SPSite-bound scope should live as long as the application container.

EnsureSiteScope ( SPSite site ) : ILifetimeScope

Ensure the creation of a site-collection-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.

SPSiteLifetimeScopeProvider ( ISharePointContainerProvider containerProvider ) : System

Creates a new per-SPSite lifetime scope provider so that state can be shared throughout the app's lifetime on a per-site-collection basis.

Private Methods

Method Description
EnsureSiteScopeInternal ( SPSite site ) : ILifetimeScope

Method Details

EndLifetimeScope() public method

Disposes a lifetime scope and all its children. This implementation should be empty because SPSite-bound scope should live as long as the application container.
public EndLifetimeScope ( ) : void
return void

EnsureSiteScope() public method

Ensure the creation of a site-collection-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 EnsureSiteScope ( SPSite site ) : ILifetimeScope
site SPSite The current site collection
return ILifetimeScope

SPSiteLifetimeScopeProvider() public method

Creates a new per-SPSite lifetime scope provider so that state can be shared throughout the app's lifetime on a per-site-collection basis.
public SPSiteLifetimeScopeProvider ( ISharePointContainerProvider containerProvider ) : System
containerProvider ISharePointContainerProvider The current container provider
return System