Méthode | Description | |
---|---|---|
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 |
The current container.
|
Méthode | Description | |
---|---|---|
ScanGacForAutofacModulesAndCreateContainer ( string appRootNamespace, bool>.Func |
public static CurrentContainer ( string appRootNamespace ) : IContainer | ||
appRootNamespace | string | The key of the current app |
Résultat | IContainer |
public static CurrentContainer ( string appRootNamespace, bool>.Func |
||
appRootNamespace | string | /// The app root namespace. /// |
assemblyFileNameMatcher | bool>.Func | /// The assembly file name matcher. /// |
Résultat | IContainer |