Class RouteWatchdogService

Assembly: redb.Tsak.Core.dll

Background service that periodically scans all route contexts for
suspected (long-running) and hung (stale) in-flight exchanges.
Emits log warnings/errors and maintains a queryable alert state.

public sealed class RouteWatchdogService : BackgroundService, IHostedService, IDisposable

Inheritance

Object→BackgroundService→RouteWatchdogService

Implements

Properties

IsEnabled

Returns true if the watchdog is currently enabled.

public bool IsEnabled { get; }

Methods

Disable()

Disables the watchdog at runtime.

public void Disable()

Enable()

Enables the watchdog at runtime.

public void Enable()

ExecuteAsync(CancellationToken)

This method is called when the starts. The implementation should return a task that represents

protected override Task ExecuteAsync(CancellationToken stoppingToken)

GetState()

Returns a snapshot of the current watchdog state.

public WatchdogState GetState()

Constructors