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
typeTypeType of the registration
namestringName of the registration
policyInterfaceTypeType of policy to be removed
Get(Type, string, Type)
Get policy
object Get(Type type, string name, Type policyInterface)
Parameters
typeTypeType of the registration
namestringName of the registration
policyInterfaceTypeType 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
typeTypeType of the registration
namestringName of the registration
policyInterfaceTypeType of policy to be set
policyobjectPolicy instance to be set
Set(Type, Type, object)
Set default policy for the type
void Set(Type type, Type policyInterface, object policy)