Share via


RetryParams Class

Definition

Wrapper class that defines a retrying behavior.

public class RetryParams
type RetryParams = class
Public Class RetryParams
Inheritance
RetryParams

Constructors

RetryParams()

Initializes a new instance of the RetryParams class.

RetryParams(TimeSpan, Boolean)

Initializes a new instance of the RetryParams class.

Properties

RetryAfter

Gets or sets a value indicating the time interval to wait between retry attempts.

ShouldRetry

Gets or sets a value indicating whether the retry action should be performed.

StopRetrying

Gets the property that stops retrying.

Methods

DefaultBackOff(Int32)

Evaluates if the current retry count is less than the maximum number of retries allowed, and returns a new RetryParams object if true, or sets the StopRetrying property to false if false.

Applies to