IPolicyRegistry<TKey>
Represents a collection of policies keyed by TKey.
namespace Polly.Registry
{
public interface IPolicyRegistry<in TKey> : IReadOnlyPolicyRegistry<TKey>
{
new IsPolicy this[TKey key] { get; set; }
void Add<TPolicy>(TKey key, TPolicy policy) where TPolicy : IsPolicy;
bool Remove(TKey key);
void Clear();
}
}