Méthode | Description | |
---|---|---|
AddProxy ( |
Adds a new proxy for a dependency in the step scope.
|
|
AddStepScopeDependency ( |
Adds a new dependency in the step scope.
|
|
GetInstance ( IProxyObject proxy ) : object |
Retrieves the instance of a proxy. If an instance has been cached it is returned, otherwise a new one is resolved using the Unity container.
|
|
GetMappedType ( |
Get mapped type for registered type and given name.
|
|
IsStepScope ( |
Checks if a dependency is in the step scope.
|
|
RemoveScopeDependency ( |
Removes a dependency from the step scope.
|
|
ResetInstances ( ) : void |
Resets the instances cache to force resolving new instances when a step changes.
|
Méthode | Description | |
---|---|---|
RegisterDestructionCallback ( string>.Tuple |
public static AddProxy ( |
||
type | the type of the dependency | |
name | string | the name of the dependency, or null if it has no name |
proxy | IProxyObject | the new proxy |
Résultat | void |
public static AddStepScopeDependency ( |
||
registeredType | the type of the dependency | |
name | string | the name of the dependency, or null if it has no name |
container | IUnityContainer | the container to use for resolving the dependency |
mappedType | the actual type that will be resolved | |
Résultat | void |
public static GetInstance ( IProxyObject proxy ) : object | ||
proxy | IProxyObject | the proxy to get the instance for |
Résultat | object |
public static GetMappedType ( |
||
registeredType | ||
name | string | |
Résultat |
public static IsStepScope ( |
||
type | the type of the dependency | |
name | string | the name of the dependency, or null if it has no name |
Résultat | bool |
public static RemoveScopeDependency ( |
||
type | the type of the dependency | |
name | string | the name of the dependency, or null if it has no name |
Résultat | void |