<PackageReference Include="Microsoft.Azure.Storage.Common" Version="11.2.3" />

Microsoft.Azure.Storage.RetryPolicies.ExponentialRetry

Represents a retry policy that performs a specified number of retries, using a randomized exponential back off scheme to determine the interval between retries.

Initializes a new instance of the ExponentialRetry class.

public ExponentialRetry(TimeSpan deltaBackoff, int maxAttempts)

Initializes a new instance of the ExponentialRetry class using the specified delta and maximum number of retries.

Generates a new retry policy for the current request attempt.

public RetryInfo Evaluate(RetryContext retryContext, OperationContext operationContext)

Determines whether the operation should be retried and the interval until the next retry.

public bool ShouldRetry(int currentRetryCount, int statusCode, Exception lastException, out TimeSpan retryInterval, OperationContext operationContext)

Determines whether the operation should be retried and the interval until the next retry.