<PackageReference Include="Polly" Version="8.4.0" />

IPolicyRegistry<TKey>

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