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