Table of Contents

Class ResiliencePipelineBuilderBase

Namespace
Polly
Assembly
Polly.Core.dll

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

public abstract class ResiliencePipelineBuilderBase
Inheritance
ResiliencePipelineBuilderBase
Derived
Inherited Members
Extension Methods

Remarks

The builder supports combining multiple strategies into a pipeline of resilience strategies. The resulting instance of ResiliencePipeline executes the strategies in the same order they were added to the builder. The order of the strategies is important.

Properties

ContextPool

Gets or sets the ResilienceContextPool associated with the builder.

public ResilienceContextPool? ContextPool { get; set; }

Property Value

ResilienceContextPool

If the default value of null is used, Shared will be used.

Remarks

A custom pool can be used to configure custom behavior for creation. This can include setting a default continueOnCapturedContext parameter or custom operation key resolution.

InstanceName

Gets or sets the instance name of the builder.

public string? InstanceName { get; set; }

Property Value

string

The default value is null.

Remarks

This property is also included in the telemetry that is produced by the individual resilience strategies. The instance name can be used to differentiate between multiple builder instances with the same Name.

Name

Gets or sets the name of the builder.

public string? Name { get; set; }

Property Value

string

The default value is null.

Remarks

This property is also included in the telemetry that is produced by the individual resilience strategies.

TimeProvider

Gets or sets a TimeProvider that is used by strategies that work with time.

public TimeProvider? TimeProvider { get; set; }

Property Value

TimeProvider

The default value is null and unless set, System will be used.