Interface IPolicyList
A custom collection over object objects.
public interface IPolicyList- Extension Methods
Methods
Clear(Type, string, Type)
Remove specific policy from the list
void Clear(Type type, string name, Type policyInterface)Parameters
- typeType
- Type of the registration 
- namestring
- Name of the registration 
- policyInterfaceType
- Type of policy to be removed 
Get(Type, string, Type)
Get policy
object Get(Type type, string name, Type policyInterface)Parameters
- typeType
- Type of the registration 
- namestring
- Name of the registration 
- policyInterfaceType
- Type of policy to retrieve 
Returns
- object
- Instance of the policy or null if none found 
Get(Type, Type)
Get default policy for the type
object Get(Type type, Type policyInterface)Parameters
Returns
- object
- Instance of the policy or null if none found 
Set(Type, string, Type, object)
Set policy
void Set(Type type, string name, Type policyInterface, object policy)Parameters
- typeType
- Type of the registration 
- namestring
- Name of the registration 
- policyInterfaceType
- Type of policy to be set 
- policyobject
- Policy instance to be set 
Set(Type, Type, object)
Set default policy for the type
void Set(Type type, Type policyInterface, object policy)