IReadOnlyPolicyRegistry<TKey>
Represents a read-only collection of policies keyed by TKey.
namespace Polly.
Registry
{
public interface IReadOnlyPolicyRegistry<
in TKey>
{
IsPolicy this[
TKey key] { get; }
int Count { get; }
TPolicy Get<
TPolicy>(
TKey key)
where TPolicy :
IsPolicy;
bool TryGet<
TPolicy>(
TKey key,
out TPolicy policy)
where TPolicy :
IsPolicy;
bool ContainsKey(
TKey key);
}
}