C# Класс GSoft.Dynamite.ServiceLocator.SPSiteLifetimeScopeProvider

Lifetime scope provider the help share state at the SPSite-level
Наследование: SPLifetimeScopeProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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