<PackageReference Include="Polly.Core" Version="8.4.1" />

ResiliencePipelineProvider<TKey>

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

public virtual ResiliencePipeline GetPipeline(TKey key)

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

public virtual ResiliencePipeline<TResult> GetPipeline<TResult>(TKey key)

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

public abstract bool TryGetPipeline(TKey key, out ResiliencePipeline pipeline)

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

public abstract bool TryGetPipeline<TResult>(TKey key, out ResiliencePipeline pipeline)

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