Method | Description | |
---|---|---|
RegisterAllImplementationsOfInterface ( Type>.Action |
Registers all of the types that implement the passed in interfaceTypes with the DI container so they can be resolved as an IEnumerable{T} of values (where T is the interface type). This overload is for DI containers that allow the use of multiple registration method calls, one for each implementation of the interface.
|
|
RegisterAllImplementationsOfInterfaceSingle ( Action |
Registers all of the types that implement the passed in interfaceTypes with the DI container so they can be resolved as an IEnumerable{T} of values (where T is the interface type). This overload is for DI containers that require the use of a multiple registration method call for all implementations a given interface.
|
|
RegisterDefaultConventions ( Type>.Action |
Registers all single types in a set of assemblies that meet the following criteria: 1) The name of the type matches the interface name (I[TypeName] = [TypeName]) or 2) The name of the type matches the interface name + the suffix "Adapter" (I[TypeName] = [TypeName]Adapter) 3) The class does not have a string parameter in the constructor 4) The class is not decorated with the [ExcludeFromAutoRegistrationAttribute]
|
Method | Description | |
---|---|---|
GetImplementationsOfInterface ( |
||
GetInterfaces ( |
||
IsAdapterType ( |
||
IsDefaultType ( |
||
IsExcludedType ( |
||
IsExcludedType ( |
||
IsExcludedType ( |
||
IsExcludedType ( |
public static RegisterAllImplementationsOfInterface ( Type>.Action |
||
registerMethod | Type>.Action | The method of the DI container used to register a single implementation, which will be /// called one time per implementation found to register each implementation of the type. Should be in the format /// (interfaceType, implementationType) => SomeMethod(interfaceType, implementationType) or similar. |
interfaceTypes | The interfaces to limit the registration to. If empty, no types will be registered. | |
implementationAssemblies | An array of assemblies to scan for the implementation types. /// This array should contain all of the assemblies where you have defined types that will be injected /// into MvcSiteMapProvider. | |
excludeTypes | An array of |
|
excludeRegEx | string | A regular expression that can be used to exclude types based on the type /// name (excluding the namespace name). All types that match the regular expression will be excluded. |
return | void |
public static RegisterAllImplementationsOfInterfaceSingle ( Action |
||
registerMethod | Action |
The method of the DI container used to register an array of implementations, which will be
/// called only one time to register all of the implementations of the type. Should be in the format
/// (interfaceType, implementationTypes) => SomeMethod(interfaceType, implementationTypes) or similar, where
/// implementationTypes is a |
interfaceTypes | The interfaces to limit the registration to. If empty, no types will be registered. | |
implementationAssemblies | An array of assemblies to scan for the implementation types. /// This array should contain all of the assemblies where you have defined types that will be injected /// into MvcSiteMapProvider. | |
excludeTypes | An array of |
|
excludeRegEx | string | A regular expression that can be used to exclude types based on the type /// name (excluding the namespace name). All types that match the regular expression will be excluded. |
return | void |
public static RegisterDefaultConventions ( Type>.Action |
||
registerMethod | Type>.Action | The method on the DI container used to register a type to an abstraction. /// Should be in the format (interfaceType, implementationType) => SomeMethod(interfaceType, implementationType) /// or similar. |
interfaceAssemblies | An array of assemblies to scan for the interface types. These assemblies
/// must be referenced within this project. Typically, you will just want to use the MvcSiteMapProvider
/// assembly unless you decide to use |
|
implementationAssemblies | An array of assemblies to scan for the implementation types. /// This array should contain all of the assemblies where you have defined types that will be injected /// into MvcSiteMapProvider. | |
excludeTypes | An array of |
|
excludeRegEx | string | A regular expression that can be used to exclude types based on the type /// name (excluding the namespace name). All types that match the regular expression will be excluded. |
return | void |