Table of Contents

Class RetryPolicyInfo

Namespace
Ecng.Net
Assembly
Ecng.Net.dll

Provides configuration information for retry policies, including retry counts and delays.

public class RetryPolicyInfo
Inheritance
RetryPolicyInfo
Inherited Members
Extension Methods

Constructors

RetryPolicyInfo()

public RetryPolicyInfo()

Properties

InitialDelay

Gets or sets the initial delay to wait between retry attempts.

public TimeSpan InitialDelay { get; set; }

Property Value

TimeSpan

Exceptions

ArgumentOutOfRangeException

Thrown when the value is less than or equal to Zero.

MaxDelay

Gets or sets the maximum delay allowed between retry attempts.

public TimeSpan MaxDelay { get; set; }

Property Value

TimeSpan

Exceptions

ArgumentOutOfRangeException

Thrown when the value is less than or equal to Zero.

ReadMaxCount

Gets or sets the maximum number of retry attempts for read operations.

public int ReadMaxCount { get; set; }

Property Value

int

Exceptions

ArgumentOutOfRangeException

Thrown when the value is less than 0.

Track

Gets the set of socket errors for which retry attempts should be tracked.

public ISet<SocketError> Track { get; }

Property Value

ISet<SocketError>

WriteMaxCount

Gets or sets the maximum number of retry attempts for write operations.

public int WriteMaxCount { get; set; }

Property Value

int

Exceptions

ArgumentOutOfRangeException

Thrown when the value is less than 0.