Table of Contents

Class RetryOptions

Namespace
AnyProtocol
Assembly
AnyProtocol.dll

Configures retry behavior.

public sealed record RetryOptions : IEquatable<RetryOptions>
Inheritance
RetryOptions
Implements
Inherited Members

Constructors

RetryOptions()

public RetryOptions()

Properties

InitialDelay

Gets or initializes the initial delay.

public TimeSpan InitialDelay { get; init; }

Property Value

TimeSpan

The initial delay.

JitterFactor

Gets or initializes the jitter factor.

public double JitterFactor { get; init; }

Property Value

double

The jitter factor.

MaxAttempts

Gets or initializes the max attempts.

public int MaxAttempts { get; init; }

Property Value

int

The max attempts.

MaxDelay

Gets or initializes the max delay.

public TimeSpan MaxDelay { get; init; }

Property Value

TimeSpan

The max delay.

MaxTotalTime

Gets or initializes the max total time.

public TimeSpan? MaxTotalTime { get; init; }

Property Value

TimeSpan?

The max total time.

Methods

Equals(RetryOptions?)

public bool Equals(RetryOptions? other)

Parameters

other RetryOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RetryOptions?, RetryOptions?)

public static bool operator ==(RetryOptions? left, RetryOptions? right)

Parameters

left RetryOptions
right RetryOptions

Returns

bool

operator !=(RetryOptions?, RetryOptions?)

public static bool operator !=(RetryOptions? left, RetryOptions? right)

Parameters

left RetryOptions
right RetryOptions

Returns

bool