IPolicyRegistry<TKey>
public interface IPolicyRegistry<TKey> : IReadOnlyPolicyRegistry<TKey>, IEnumerable<KeyValuePair<TKey, IsPolicy>>, IEnumerable
Represents a collection of policies keyed by TKey.
Gets or sets the IsPolicy with the specified key.
To retrieve a policy directly as a particular Policy type or Policy interface (avoiding a cast), use the Get<T> method.
Adds an element with the provided key and policy to the registry.
void Clear()
Removes all keys and policies from registry.
Removes the policy stored under the specified key from the registry.