Extensions methods for Unity. More...
Static Public Member Functions | |
static IUnityContainer | RegisterSingleton< TFrom, TTo > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Extension method automating the new ContainerControlledLifetimeManager() argument; Register a singleton, no name. More... | |
static IUnityContainer | RegisterSingleton< TFrom, TTo > (this IUnityContainer unityContainer, string name, params InjectionMember[] injectionMembers) |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a named singleton. More... | |
static IUnityContainer | RegisterSingleton< T > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a singleton, no name. More... | |
static IUnityContainer | RegisterSingleton< T > (this IUnityContainer unityContainer, string name, params InjectionMember[] injectionMembers) |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a named singleton. More... | |
static IUnityContainer | RegisterWithFactory< TFrom, TTo > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Extension method automating the registering of a factory and the use of this factory as an InjectionFactory for retrieving instances. Final object is not singleton: each time it is resolved, Factory.GetObject() will be called. More... | |
static IUnityContainer | RegisterSingletonWithFactory< TFrom, TTo > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Extension method automating the registering of a factory and the use of this factory as an InjectionFactory for retrieving instances. Final object is singleton: Factory.GetObject() will be called only once. More... | |
static IUnityContainer | RegisterStepScope< TFrom, TTo > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Registers a new depency in the step scope. More... | |
static IUnityContainer | RegisterStepScope< TFrom, TTo > (this IUnityContainer unityContainer, string name, params InjectionMember[] injectionMembers) |
Registers a new depency in the step scope. More... | |
static IUnityContainer | RegisterStepScope< T > (this IUnityContainer unityContainer, params InjectionMember[] injectionMembers) |
Registers a new depency in the step scope. More... | |
static IUnityContainer | RegisterStepScope< T > (this IUnityContainer unityContainer, string name, params InjectionMember[] injectionMembers) |
Registers a new depency in the step scope. More... | |
Detailed Description
Extensions methods for Unity.
Member Function Documentation
|
static |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a singleton, no name.
- Template Parameters
-
T
- Parameters
-
unityContainer injectionMembers
- Returns
|
static |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a named singleton.
- Template Parameters
-
T
- Parameters
-
unityContainer name injectionMembers
- Returns
|
static |
Extension method automating the new ContainerControlledLifetimeManager() argument; Register a singleton, no name.
- Template Parameters
-
TFrom TTo
- Parameters
-
unityContainer injectionMembers
- Returns
- Type Constraints
-
TTo : TFrom
|
static |
Extension method automating the new ContainerControlledLifetimeManager() argument. Register a named singleton.
- Template Parameters
-
TFrom TTo
- Parameters
-
unityContainer name injectionMembers
- Returns
- Type Constraints
-
TTo : TFrom
|
static |
Extension method automating the registering of a factory and the use of this factory as an InjectionFactory for retrieving instances. Final object is singleton: Factory.GetObject() will be called only once.
- Type Constraints
-
TTo : IFactory<TFrom>
|
static |
Registers a new depency in the step scope.
- Template Parameters
-
T the actual type of the dependency
- Parameters
-
unityContainer the container to configure injectionMembers the injection configuration objects
- Returns
- the configured container (unityContainer )
|
static |
Registers a new depency in the step scope.
- Template Parameters
-
T the actual type of the dependency
- Parameters
-
unityContainer the container to configure name the name to use for registration injectionMembers the injection configuration objects
- Returns
- the configured container (unityContainer )
|
static |
Registers a new depency in the step scope.
- Template Parameters
-
TFrom the type that will be requested TTo the actual type that will be returned
- Parameters
-
unityContainer the container to configure injectionMembers the injection configuration objects
- Returns
- the configured container (unityContainer )
- Type Constraints
-
TTo : TFrom
|
static |
Registers a new depency in the step scope.
- Template Parameters
-
TFrom the type that will be requested TTo the actual type that will be returned
- Parameters
-
unityContainer the container to configure name the name to use for registration injectionMembers the injection configuration objects
- Returns
- the configured container (unityContainer )
- Type Constraints
-
TTo : TFrom
|
static |
Extension method automating the registering of a factory and the use of this factory as an InjectionFactory for retrieving instances. Final object is not singleton: each time it is resolved, Factory.GetObject() will be called.
- Type Constraints
-
TTo : IFactory<TFrom>
The documentation for this class was generated from the following file:
- Summer.Batch.Core/Core/Unity/UnityExtensions.cs