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

OnRetryArguments

public sealed class OnRetryArguments
Represents the arguments used by OnRetry for handling the retry event.
public int Attempt { 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 attempt, TimeSpan retryDelay, TimeSpan executionTime)

Initializes a new instance of the OnRetryArguments class.