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
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010

Protected Properties

Property Type Description
appRootNamespace string
assemblyFileNameMatcher bool>.Func

Public Methods

Method 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 method

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

NamespaceFilteredContainerProvider() public method

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. ///
return System

Property Details

appRootNamespace protected_oe property

protected string appRootNamespace
return string

assemblyFileNameMatcher protected_oe property

protected Func assemblyFileNameMatcher
return bool>.Func