Class LoggingLifecycleListener

Namespace: redb.Route.Core
Assembly: redb.Route.dll

Built-in lifecycle listener that logs all route state transitions via .

public sealed class LoggingLifecycleListener : IRouteLifecycleListener

Inheritance

Object→LoggingLifecycleListener

Implements

Methods

OnExchangeTimedOut(string, string, TimeSpan, CancellationToken)

Fired when an exchange times out (per-exchange processing timeout from Phase 5).

public Task OnExchangeTimedOut(string routeId, string exchangeId, TimeSpan elapsed, CancellationToken ct)

OnRouteErrored(string, Exception, CancellationToken)

Fired when a route fails to start or encounters a fatal error.

public Task OnRouteErrored(string routeId, Exception ex, CancellationToken ct)

OnRouteStarted(string, CancellationToken)

Fired after a route has been started and is processing exchanges.

public Task OnRouteStarted(string routeId, CancellationToken ct)

OnRouteStopped(string, CancellationToken)

Fired after a route has been stopped.

public Task OnRouteStopped(string routeId, CancellationToken ct)

OnRouteSuspending(string, CancellationToken)

Fired when a route enters the Suspending state (drain starting).

public Task OnRouteSuspending(string routeId, CancellationToken ct)

Constructors

LoggingLifecycleListener(ILogger)

Creates a logging lifecycle listener.