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

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

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

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

Приватные методы

Метод Описание
EnsureWebScopeInternal ( SPWeb web ) : ILifetimeScope

Описание методов

EndLifetimeScope() публичный Метод

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
Результат void

EnsureWebScope() публичный Метод

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
Результат ILifetimeScope

SPWebLifetimeScopeProvider() публичный Метод

Initializes a new instance of the SPWebLifetimeScopeProvider class.
public SPWebLifetimeScopeProvider ( ISharePointContainerProvider containerProvider ) : System
containerProvider ISharePointContainerProvider /// The container provider. ///
Результат System