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

OnRetryArguments<TResult>

public struct OnRetryArguments<TResult> : IOutcomeArguments<TResult>
Represents the arguments used by OnRetry for handling the retry event.
using Polly.Utils; using System; using System.Runtime.CompilerServices; namespace Polly.Retry { [NullableContext(1)] [Nullable(0)] public readonly struct OnRetryArguments<[Nullable(2)] TResult> : IOutcomeArguments<TResult> { [Nullable(new byte[] { 0, 1 })] [field: Nullable(new byte[] { 0, 1 })] public Outcome<TResult> Outcome { [return: Nullable(new byte[] { 0, 1 })] get; } public ResilienceContext Context { get; } public int AttemptNumber { get; } public TimeSpan RetryDelay { get; } public TimeSpan Duration { get; } public OnRetryArguments(ResilienceContext context, [Nullable(new byte[] { 0, 1 })] Outcome<TResult> outcome, int attemptNumber, TimeSpan retryDelay, TimeSpan duration) { Context = context; Outcome = outcome; AttemptNumber = attemptNumber; RetryDelay = retryDelay; Duration = duration; } } }