<PackageReference Include="Azure.Core" Version="1.48.0" />

RetryOptions

public class RetryOptions
The set of options that can be specified to influence how retry attempts are made, and a failure is eligible to be retried.
public TimeSpan Delay { get; set; }

The delay between retry attempts for a fixed approach or the delay on which to base calculations for a backoff-based approach. If the service provides a Retry-After response header, the next retry will be delayed by the duration specified by the header value.

public TimeSpan MaxDelay { get; set; }

The maximum permissible delay between retry attempts when the service does not provide a Retry-After response header. If the service provides a Retry-After response header, the next retry will be delayed by the duration specified by the header value.

public int MaxRetries { get; set; }

The maximum number of retry attempts before giving up.

public RetryMode Mode { get; set; }

The approach to use for calculating retry delays.

public TimeSpan NetworkTimeout { get; set; }

The timeout applied to an individual network operations.