Struct HedgingDelayGeneratorArguments
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
ResilienceContextThe context associated with the execution of a user-provided callback.
attemptNumber
intThe zero-based hedging attempt number.
Properties
AttemptNumber
Gets the zero-based hedging attempt number.
public int AttemptNumber { get; }
Property Value
Context
Gets the context associated with the execution of a user-provided callback.
public ResilienceContext Context { get; }