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

RetryPredicateArguments<TResult>

public struct RetryPredicateArguments<TResult> : IOutcomeArguments<TResult>
Represents the arguments used by ShouldHandle for determining whether a retry should be performed.
using Polly.Utils; using System.Runtime.CompilerServices; namespace Polly.Retry { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public readonly struct RetryPredicateArguments<[System.Runtime.CompilerServices.Nullable(2)] TResult> : IOutcomeArguments<TResult> { [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] [field: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public Outcome<TResult> Outcome { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] get; } public ResilienceContext Context { get; } public int AttemptNumber { get; } public RetryPredicateArguments(ResilienceContext context, [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] Outcome<TResult> outcome, int attemptNumber) { Context = context; Outcome = outcome; AttemptNumber = attemptNumber; } } }