<PackageReference Include="Polly.Core" Version="8.4.2" />

ExecutionAttemptArguments

Arguments that encapsulate the execution attempt for retries or hedging.
public int AttemptNumber { get; }

Gets the attempt number.

public TimeSpan Duration { get; }

Gets the execution duration of the attempt.

public bool Handled { get; }

Gets a value indicating whether the outcome was handled by retry or hedging strategy.

public ExecutionAttemptArguments(int attemptNumber, TimeSpan duration, bool handled)

Initializes a new instance of the ExecutionAttemptArguments struct.