Table of Contents

Class RecoveryState

Namespace
Virtufin.WorkManager.Services
Assembly
Virtufin.WorkManager.dll

Tracks the state of worker recovery on startup. Used by the recovery health check to gate Kestrel readiness.

public sealed class RecoveryState
Inheritance
RecoveryState
Inherited Members

Properties

RecoveryCompleted

Whether the recovery process has been completed (successfully or not).

public bool RecoveryCompleted { get; }

Property Value

bool

RecoveryException

The exception that caused recovery to fail, if any.

public Exception? RecoveryException { get; }

Property Value

Exception

RecoveryFailed

Whether recovery was attempted and failed.

public bool RecoveryFailed { get; }

Property Value

bool

Methods

CompleteRecovery()

Marks recovery as successfully completed.

public void CompleteRecovery()

FailRecovery(Exception)

Marks recovery as failed with the given exception.

public void FailRecovery(Exception ex)

Parameters

ex Exception