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

ResilienceStrategyProvider<TKey>

public abstract class ResilienceStrategyProvider<TKey>
Represents a provider for resilience strategies that are accessible by TKey.

public virtual ResilienceStrategy Get(TKey key)

Retrieves a resilience strategy from the provider using the specified key.

public virtual ResilienceStrategy<TResult> Get<TResult>(TKey key)

Retrieves a generic resilience strategy from the provider using the specified key.

public abstract bool TryGet(TKey key, out ResilienceStrategy strategy)

Tries to get a resilience strategy from the provider using the specified key.

public abstract bool TryGet<TResult>(TKey key, out ResilienceStrategy strategy)

Tries to get a generic resilience strategy from the provider using the specified key.