ReconnectConfig
public sealed record ReconnectConfig : IEquatable<ReconnectConfig>
How hard, and for how long, the SDK tries to re-open a camera that has gone.
A reconnect is a re-open, not a retry. A host suspend or a replug invalidates the device handle rather than making it stale, so the streaming session is torn down completely (the claim released, the source reader destroyed, the control channel closed), and a fresh one opened in its place. Nothing is resumed.
The delays exist because a camera does not come back the instant it goes: a host resume re-enumerates USB over a second or two, and hammering the bus in that window is how a recoverable drop becomes a wedged one. Attempt n waits InitialDelay * BackoffMultiplier^(n-1), capped at ReconnectConfig.MaxDelay.
ReconnectConfig: constructors
public ReconnectConfig()
ReconnectConfig: properties
public float BackoffMultiplier { get; init; }
How much longer each attempt waits than the one before. Must be at least 1.0; below that the wait shortens after every failure, which is the opposite of backing off and is refused.
public TimeSpan InitialDelay { get; init; }
The wait before the first attempt. Must be above TimeSpan.Zero: a zero wait is a retry loop with no wait in it, and is refused.
Carried as whole milliseconds, rounded, and floored at one for any positive value, so asking for less than a millisecond gets a millisecond rather than the refusal a zero earns.
public int MaxAttempts { get; init; }
How many attempts before giving up. Zero or less means keep trying for as long as the camera is open, which is what an unattended installation wants and what an interactive one does not.
public TimeSpan MaxDelay { get; init; }
The longest wait between attempts, however far the backoff has climbed. TimeSpan.Zero means there is no ceiling and every attempt waits ReconnectConfig.InitialDelay.
Carried as whole milliseconds, rounded, and never down to zero from a positive value, since zero is the sentinel above: a short ceiling is a short ceiling, not the absence of one.