Class NoopFlowEventNotifier
- Namespace
- FlowOrchestrator.Core.Notifications
- Assembly
- FlowOrchestrator.Core.dll
Default IFlowEventNotifier implementation that discards every event. Registered when no realtime consumer (e.g. the dashboard's SSE broadcaster) is wired in, so apps that never opt in pay zero overhead — PublishAsync(FlowLifecycleEvent, CancellationToken) returns a completed ValueTask with no allocation.
public sealed class NoopFlowEventNotifier : IFlowEventNotifier
- Inheritance
-
NoopFlowEventNotifier
- Implements
- Inherited Members
Fields
Instance
Shared singleton instance used as the engine's fallback when DI registration is absent.
public static readonly NoopFlowEventNotifier Instance
Field Value
Methods
PublishAsync(FlowLifecycleEvent, CancellationToken)
Publishes evt to any subscribers. Implementations should not block;
dropped events are preferable to a stalled engine.
public ValueTask PublishAsync(FlowLifecycleEvent evt, CancellationToken ct = default)
Parameters
evtFlowLifecycleEventThe lifecycle event to publish.
ctCancellationTokenToken cancelled when the engine shuts down.