C# Class GSoft.Dynamite.ServiceLocator.NamespaceFilteredContainerProvider

Basic Autofac container provider that will automatically scan the GAC for assemblies that match the provider's appRootNamespace (or, alternatively, those that match the provider's assemblyFileMatcher). All Autoface registration modules found in those assemblies will be loaded in the provided container when Current is accessed for the first time after an application pool recyle.
Inheritance: IContainerProvider
Afficher le fichier Open project: GSoft-SharePoint/Dynamite-2010

Protected Properties

Свойство Type Description
appRootNamespace string
assemblyFileNameMatcher bool>.Func

Méthodes publiques

Méthode Description
NamespaceFilteredContainerProvider ( string appRootNamespace ) : System

Initializes a new instance of the ContainerScopeProvider class.

NamespaceFilteredContainerProvider ( string appRootNamespace, bool>.Func assemblyFileNameMatcher ) : System

Initializes a new instance of the ContainerScopeProvider class.

Method Details

NamespaceFilteredContainerProvider() public méthode

Initializes a new instance of the ContainerScopeProvider class.
public NamespaceFilteredContainerProvider ( string appRootNamespace ) : System
appRootNamespace string /// The app root namespace. ///
Résultat System

NamespaceFilteredContainerProvider() public méthode

Initializes a new instance of the ContainerScopeProvider class.
public NamespaceFilteredContainerProvider ( string appRootNamespace, bool>.Func assemblyFileNameMatcher ) : System
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. ///
Résultat System

Property Details

appRootNamespace protected_oe property

protected string appRootNamespace
Résultat string

assemblyFileNameMatcher protected_oe property

protected Func assemblyFileNameMatcher
Résultat bool>.Func