메소드 | 설명 | |
---|---|---|
EnsureSiteScope ( SPSite site ) : ILifetimeScope |
Either creates a new lifetime scope from the specified site or returns the existing one. Don't dispose this scope instance, as it could be reused by others. Allows for the usage of InstancePerSite even when outside of a typical HTTP request context (for example, use EnsureSiteScope from a FeatureActivated even receiver run from Powershell.exe to reuse objects across many event receivers triggered by the same process). In typical HTTP request context, use CurrentSite property instead.
|
|
EnsureWebScope ( SPWeb web ) : ILifetimeScope |
Either creates a new lifetime scope from the specified web or returns the existing one. Don't dispose this scope instance, as it could be reused by others. Allows for the usage of InstancePerWeb even when outside of a typical http request context (for example, use EnsureSiteScope from a FeatureActivated even receiver run from Powershell.exe to reuse objects across many event receivers triggered by the same process). In typical HTTP request context, use CurrentWeb property instead.
|
|
SharePointContainerProvider ( string appRootNamespace ) : System |
Initializes a new instance of the SharePointContainerProvider class.
|
|
SharePointContainerProvider ( string appRootNamespace, bool>.Func |
Initializes a new instance of the SharePointContainerProvider class.
|
public EnsureSiteScope ( SPSite site ) : ILifetimeScope | ||
site | SPSite | The current site to use in retreiving or creating the scope |
리턴 | ILifetimeScope |
public EnsureWebScope ( SPWeb web ) : ILifetimeScope | ||
web | SPWeb | The current web to use in retreiving or creating the scope |
리턴 | ILifetimeScope |
public SharePointContainerProvider ( string appRootNamespace ) : System | ||
appRootNamespace | string | /// The app root namespace. /// |
리턴 | System |
public SharePointContainerProvider ( string appRootNamespace, bool>.Func |
||
appRootNamespace | string | /// The app root namespace. /// |
assemblyFileNameMatcher | bool>.Func | /// The assembly file name matcher (will be used instead of the appRootNamespace to /// match assembly names in the GAC). The appRootNamespace still acts as the provided /// container's unique key among all the other containers that live in the AppDomain. /// |
리턴 | System |