Class LifecycleAuditService
Ring-buffer audit trail for route lifecycle events.
Implements indirectly via per-context wrappers
and exposes methods for context-level events and manual recording.
public sealed class LifecycleAuditService
Inheritance
Properties
Methods
GetEvents(string?, string?, LifecycleEventType?, DateTime?, int)
Returns events matching the filters, newest first.
public IReadOnlyList<LifecycleEvent> GetEvents(string? contextName = null, string? routeId = null, LifecycleEventType? eventType = null, DateTime? since = null, int limit = 100)
Record(LifecycleEvent)
Records an arbitrary event (e.g., from watchdog).
public void Record(LifecycleEvent evt)
RecordContextEvent(string, LifecycleEventType, string?)
Records a context-level event.
public void RecordContextEvent(string contextName, LifecycleEventType eventType, string? details = null)
RegisterContext(string, IRouteContext)
Registers the audit trail as a lifecycle listener on a RouteContext.
public void RegisterContext(string contextName, IRouteContext context)