Interface IPolicySet
Namespace: Unity.Policy
Assembly: Unity.Abstractions.dll
Syntax
public interface IPolicySet
Methods
| Improve this Doc View SourceClear(Type)
Remove specific policy from the list
Declaration
void Clear(Type policyInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | policyInterface | Type of policy to be removed |
Get(Type)
Get policy
Declaration
object Get(Type policyInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | policyInterface | Type of policy to retrieve |
Returns
| Type | Description |
|---|---|
| Object | Instance of the policy or null if none found |
Set(Type, Object)
Set policy
Declaration
void Set(Type policyInterface, object policy)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | policyInterface | Type of policy to be set |
| Object | policy | Policy instance to be set |