Table of Contents

Class HedgingResiliencePipelineBuilderExtensions

Namespace
Polly
Assembly
Polly.Core.dll

Extensions for adding hedging to ResiliencePipelineBuilder.

public static class HedgingResiliencePipelineBuilderExtensions
Inheritance
HedgingResiliencePipelineBuilderExtensions
Inherited Members

Methods

AddHedging<TResult>(ResiliencePipelineBuilder<TResult>, HedgingStrategyOptions<TResult>)

Adds a hedging with the provided options to the builder.

public static ResiliencePipelineBuilder<TResult> AddHedging<TResult>(this ResiliencePipelineBuilder<TResult> builder, HedgingStrategyOptions<TResult> options)

Parameters

builder ResiliencePipelineBuilder<TResult>

The resilience pipeline builder.

options HedgingStrategyOptions<TResult>

The options to configure the hedging.

Returns

ResiliencePipelineBuilder<TResult>

The builder instance with the hedging added.

Type Parameters

TResult

The result type.

Exceptions

ArgumentNullException

Thrown when builder or options is null.

ValidationException

Thrown when options are invalid.