Table of Contents

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

NoopFlowEventNotifier

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

evt FlowLifecycleEvent

The lifecycle event to publish.

ct CancellationToken

Token cancelled when the engine shuts down.

Returns

ValueTask