Table of Contents

Struct HedgingDelayGeneratorArguments

Namespace
Polly.Hedging
Assembly
Polly.Core.dll

Arguments used by hedging delay generator.

public readonly struct HedgingDelayGeneratorArguments
Inherited Members

Remarks

Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.

Constructors

HedgingDelayGeneratorArguments(ResilienceContext, int)

Initializes a new instance of the HedgingDelayGeneratorArguments struct.

public HedgingDelayGeneratorArguments(ResilienceContext context, int attemptNumber)

Parameters

context ResilienceContext

The context associated with the execution of a user-provided callback.

attemptNumber int

The zero-based hedging attempt number.

Properties

AttemptNumber

Gets the zero-based hedging attempt number.

public int AttemptNumber { get; }

Property Value

int

Context

Gets the context associated with the execution of a user-provided callback.

public ResilienceContext Context { get; }

Property Value

ResilienceContext