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

RetryDelayGeneratorArguments<TResult>

public struct RetryDelayGeneratorArguments<TResult>
Represents the arguments used by DelayGenerator for generating the next retry delay.
public int AttemptNumber { get; }

Gets The zero-based attempt number.

public ResilienceContext Context { get; }

Gets the context in which the resilience operation or event occurred.

public Outcome<TResult> Outcome { get; }

Gets the outcome of the resilience operation or event.

public RetryDelayGeneratorArguments(ResilienceContext context, Outcome<TResult> outcome, int attemptNumber)

Initializes a new instance of the RetryDelayGeneratorArguments<T> struct.