Table of Contents

Class ConsulRetryOptions

Namespace
Steeltoe.Discovery.Consul.Configuration
Assembly
Steeltoe.Discovery.Consul.dll

Configuration values used for the retry feature.

public sealed class ConsulRetryOptions
Inheritance
ConsulRetryOptions
Inherited Members

Properties

Enabled

Gets or sets a value indicating whether to try again When registering the running app fails. Default value: false.

public bool Enabled { get; set; }

Property Value

bool

InitialInterval

Gets or sets the time to wait (in milliseconds) after the first registration failure. Default value: 1000.

public int InitialInterval { get; set; }

Property Value

int

MaxAttempts

Gets or sets the maximum number of registration attempts (if retries are enabled). Default value: 6.

public int MaxAttempts { get; set; }

Property Value

int

MaxInterval

Gets or sets the upper bound (in milliseconds) for intervals. Default value: 2000.

public int MaxInterval { get; set; }

Property Value

int

Multiplier

Gets or sets the factor to increment the next interval with. Default value: 1.1.

public double Multiplier { get; set; }

Property Value

double