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
otherRetryOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RetryOptions?, RetryOptions?)
public static bool operator ==(RetryOptions? left, RetryOptions? right)
Parameters
leftRetryOptionsrightRetryOptions
Returns
operator !=(RetryOptions?, RetryOptions?)
public static bool operator !=(RetryOptions? left, RetryOptions? right)
Parameters
leftRetryOptionsrightRetryOptions