Table of Contents

Class RetryOptions

Namespace
OpenShell.DependencyInjection
Assembly
OpenShell.Sdk.DependencyInjection.dll

Bindable retry settings; unset values keep the Default values.

public sealed class RetryOptions
Inheritance
RetryOptions
Inherited Members

Properties

BackoffMultiplier

Growth factor between delays.

public double? BackoffMultiplier { get; set; }

Property Value

double?

InitialBackoff

Delay before the first retry.

public TimeSpan? InitialBackoff { get; set; }

Property Value

TimeSpan?

Jitter

Fraction (0 to 1) of each delay that is randomized.

public double? Jitter { get; set; }

Property Value

double?

MaxAttempts

Total attempts including the first. 1 disables retries.

public int? MaxAttempts { get; set; }

Property Value

int?

MaxBackoff

Upper bound for any single delay.

public TimeSpan? MaxBackoff { get; set; }

Property Value

TimeSpan?

RetryableStatusCodes

Status codes worth retrying.

public StatusCode[]? RetryableStatusCodes { get; set; }

Property Value

StatusCode[]