<PackageReference Include="Polly.Core" Version="8.0.0-alpha.2" />

ExecutionAttemptArguments

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

Gets the attempt number.

public TimeSpan ExecutionTime { get; }

Gets the execution time of the attempt.

public bool Handled { get; }

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

public ExecutionAttemptArguments(int attempt, TimeSpan executionTime, bool handled)

Initializes a new instance of the ExecutionAttemptArguments class.