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

OnRetryArguments

public sealed class OnRetryArguments
Represents the arguments used by OnRetry for handling the retry event.
public int AttemptNumber { get; }

Gets the zero-based attempt number.

public TimeSpan ExecutionTime { get; }

Gets the execution time of this attempt.

public TimeSpan RetryDelay { get; }

Gets the delay before the next retry.

public OnRetryArguments(int attemptNumber, TimeSpan retryDelay, TimeSpan executionTime)

Initializes a new instance of the OnRetryArguments class.