Table of Contents

Class ResolvedReconnect

Namespace
DatabentoDotNet.Extensions.Hosting
Assembly
DatabentoDotNet.Extensions.Hosting.dll

A reconnection policy with its durations parsed.

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

Properties

Default

The default policy: enabled, one second to thirty, ten consecutive attempts.

public static ResolvedReconnect Default { get; }

Property Value

ResolvedReconnect

Enabled

Whether to reconnect at all.

public required bool Enabled { get; init; }

Property Value

bool

InitialDelay

The first backoff delay.

public required Duration InitialDelay { get; init; }

Property Value

Duration

MaxAttempts

How many consecutive failures to tolerate. The counter resets on a successful start.

public required int MaxAttempts { get; init; }

Property Value

int

MaxDelay

The backoff ceiling.

public required Duration MaxDelay { get; init; }

Property Value

Duration