<PackageReference Include="Polly.Core" Version="8.0.0-alpha.6" />

ResilienceStrategyRegistryOptions<TKey>

An options class used by ResilienceStrategyRegistry<T>.
public IEqualityComparer<TKey> BuilderComparer { get; set; }

Gets or sets the comparer that is used by the registry to retrieve the resilience strategy builders.

Gets or sets the factory method that creates instances of ResilienceStrategyBuilder.

public Func<TKey, string> BuilderNameFormatter { get; set; }

Gets or sets the formatter that is used by the registry to format the TKey to a string that represents the builder name.

public Func<TKey, string> InstanceNameFormatter { get; set; }

Gets or sets the formatter that is used by the registry to format the TKey to a string that represents the instance name of the builder.

public IEqualityComparer<TKey> StrategyComparer { get; set; }

Gets or sets the comparer that is used by the registry to retrieve the resilience strategies.