/// <summary> /// Initializes a new instance of the <see cref="SharePointContainerProvider"/> class. /// </summary> /// <param name="appRootNamespace"> /// The app root namespace. /// </param> /// <param name="assemblyFileNameMatcher"> /// 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. /// </param> public SharePointContainerProvider(string appRootNamespace, Func <string, bool> assemblyFileNameMatcher) : base(appRootNamespace, assemblyFileNameMatcher) { this.siteLifetimeScopeProvider = new SPSiteLifetimeScopeProvider(this); this.webLifetimeScopeProvider = new SPWebLifetimeScopeProvider(this); this.requestLifetimeScopeProvider = new SPRequestLifetimeScopeProvider(this); }
/// <summary> /// Initializes a new instance of the <see cref="SharePointContainerProvider"/> class. /// </summary> /// <param name="appRootNamespace"> /// The app root namespace. /// </param> /// <param name="assemblyFileNameMatcher"> /// 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. /// </param> public SharePointContainerProvider(string appRootNamespace, Func<string, bool> assemblyFileNameMatcher) : base(appRootNamespace, assemblyFileNameMatcher) { this.siteLifetimeScopeProvider = new SPSiteLifetimeScopeProvider(this); this.webLifetimeScopeProvider = new SPWebLifetimeScopeProvider(this); this.requestLifetimeScopeProvider = new SPRequestLifetimeScopeProvider(this); }