Struct ExecutionAttemptArguments
Arguments that encapsulate the execution attempt for retries or hedging.
public readonly struct ExecutionAttemptArguments
- Inherited Members
Remarks
Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
Constructors
ExecutionAttemptArguments(int, TimeSpan, bool)
Initializes a new instance of the ExecutionAttemptArguments struct.
public ExecutionAttemptArguments(int attemptNumber, TimeSpan duration, bool handled)
Parameters
attemptNumber
intThe execution attempt number.
duration
TimeSpanThe execution duration.
handled
boolDetermines whether the attempt was handled by the strategy.
Properties
AttemptNumber
Gets the attempt number.
public int AttemptNumber { get; }
Property Value
Duration
Gets the execution duration of the attempt.
public TimeSpan Duration { get; }
Property Value
Handled
Gets a value indicating whether the outcome was handled by retry or hedging strategy.
public bool Handled { get; }