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

RetryPredicateArguments<TResult>

public struct RetryPredicateArguments<TResult> : IOutcomeArguments<TResult>
Represents the arguments used by ShouldHandle for determining whether a retry should be performed.
public int AttemptNumber { get; }

Gets the zero-based attempt number.

public ResilienceContext Context { get; }

Gets the context of this event.

public Outcome<TResult> Outcome { get; }

Gets the outcome of the user-specified callback.

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

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