Interface IPolicyList
A custom collection over Object objects.
Namespace: Unity.Policy
Assembly: Unity.Abstractions.dll
Syntax
public interface IPolicyList
Methods
| Improve this Doc View SourceClear(Type, String, Type)
Remove specific policy from the list
Declaration
void Clear(Type type, string name, Type policyInterface)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of the registration |
String | name | Name of the registration |
Type | policyInterface | Type of policy to be removed |
Get(Type, String, Type)
Get policy
Declaration
object Get(Type type, string name, Type policyInterface)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of the registration |
String | name | Name of the registration |
Type | policyInterface | Type of policy to retrieve |
Returns
Type | Description |
---|---|
Object | Instance of the policy or null if none found |
Get(Type, Type)
Get default policy for the type
Declaration
object Get(Type type, Type policyInterface)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of the registration |
Type | policyInterface | Type of policy to retrieve |
Returns
Type | Description |
---|---|
Object | Instance of the policy or null if none found |
Set(Type, String, Type, Object)
Set policy
Declaration
void Set(Type type, string name, Type policyInterface, object policy)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of the registration |
String | name | Name of the registration |
Type | policyInterface | Type of policy to be set |
Object | policy | Policy instance to be set |
Set(Type, Type, Object)
Set default policy for the type
Declaration
void Set(Type type, Type policyInterface, object policy)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of the registration |
Type | policyInterface | Type of policy to be set |
Object | policy | Policy instance to be set |