C# 클래스 GSoft.Dynamite.ServiceLocator.SPSiteLifetimeScopeProvider

Lifetime scope provider the help share state at the SPSite-level
상속: SPLifetimeScopeProvider
파일 보기 프로젝트 열기: GSoft-SharePoint/Dynamite-2010 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
EnsureSiteScopeInternal ( SPSite site ) : ILifetimeScope

메소드 상세

EndLifetimeScope() 공개 메소드

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
리턴 void

EnsureSiteScope() 공개 메소드

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
리턴 ILifetimeScope

SPSiteLifetimeScopeProvider() 공개 메소드

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
리턴 System