Table of Contents

Class ResiliencePipelineBuilder<TResult>

Namespace
Polly
Assembly
Polly.Core.dll

A builder that is used to create an instance of ResiliencePipeline<T>.

public sealed class ResiliencePipelineBuilder<TResult> : ResiliencePipelineBuilderBase

Type Parameters

TResult

The type of result to handle.

Inheritance
ResiliencePipelineBuilder<TResult>
Inherited Members
Extension Methods

Remarks

The builder supports combining multiple strategies into a pipeline of resilience strategies. The resulting instance of ResiliencePipeline<T> created by the Build() call will execute the strategies in the same order they were added to the builder. The order of the strategies is important.

Constructors

ResiliencePipelineBuilder()

Initializes a new instance of the ResiliencePipelineBuilder<TResult> class.

public ResiliencePipelineBuilder()

Methods

Build()

Builds the resilience pipeline.

public ResiliencePipeline<TResult> Build()

Returns

ResiliencePipeline<TResult>

An instance of ResiliencePipeline<T>.

Exceptions

ValidationException

Thrown when this builder has invalid configuration.