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

Maintains AppDomain-wide root containers that automatically scan the GAC for Autofac dependency injection modules that derive from the Module Autofac base class.
Only the GAC_MSIL folder of the .NET 3.5 GAC (c:\windows\assembly) is scanned.
파일 보기 프로젝트 열기: GSoft-SharePoint/Dynamite-2010

공개 메소드들

메소드 설명
CurrentContainer ( string appRootNamespace ) : IContainer

Returns a service locator instance for the entire application (i.e. throughout the current AppDomain). Acts as root Container for all other child lifetime scopes. Hosts all singletons that are registered as SingleInstance(). Whenever applicable, prefer creating a child lifetime scope instead of resolving directly for this root Container instance.

CurrentContainer ( string appRootNamespace, bool>.Func assemblyFileNameMatcher ) : IContainer

The current container.

비공개 메소드들

메소드 설명
ScanGacForAutofacModulesAndCreateContainer ( string appRootNamespace, bool>.Func assemblyFileNameMatchingPredicate ) : IContainer

메소드 상세

CurrentContainer() 공개 정적인 메소드

Returns a service locator instance for the entire application (i.e. throughout the current AppDomain). Acts as root Container for all other child lifetime scopes. Hosts all singletons that are registered as SingleInstance(). Whenever applicable, prefer creating a child lifetime scope instead of resolving directly for this root Container instance.
public static CurrentContainer ( string appRootNamespace ) : IContainer
appRootNamespace string The key of the current app
리턴 IContainer

CurrentContainer() 공개 정적인 메소드

The current container.
public static CurrentContainer ( string appRootNamespace, bool>.Func assemblyFileNameMatcher ) : IContainer
appRootNamespace string /// The app root namespace. ///
assemblyFileNameMatcher bool>.Func /// The assembly file name matcher. ///
리턴 IContainer