DelayStrategy
An abstraction to control delay behavior.
Constructs a new instance of DelayStrategy. This constructor can be used by derived classes to customize the jitter factor and max delay.
public static DelayStrategy CreateExponentialDelayStrategy(TimeSpan? initialDelay = default, TimeSpan? maxDelay = default)
Constructs an exponential delay with jitter.
Constructs a fixed delay with jitter.
Gets the maximum of two TimeSpan values.
Gets the minimum of two TimeSpan values.
Gets the next delay interval taking into account the Max Delay, jitter, and any Retry-After headers.
Gets the next delay interval. Implement this method to provide custom delay logic.
The Max Delay, jitter, and any Retry-After headers will be applied to the value returned from this method.