Class MqttProactiveEmitter

Namespace
Kuestenlogik.Bowire.Protocol.Mqtt.Mock
Assembly
Kuestenlogik.Bowire.Protocol.Mqtt.dll

Proactive emitter for Phase 2f: replays the MQTT publishes captured in a BowireRecording onto an embedded MQTTnet broker on a schedule. No HTTP trigger needed — the scheduler fires as soon as a subscriber is attached (or after the startup-grace timeout, whichever comes first). Subscribers that connect late miss already-fired publishes (retained messages stick around per MQTT semantics).

public sealed class MqttProactiveEmitter : IAsyncDisposable
Inheritance
MqttProactiveEmitter
Implements
Inherited Members

Constructors

MqttProactiveEmitter(MqttServer, BowireRecording, double, ILogger, bool, TimeSpan?)

public MqttProactiveEmitter(MqttServer broker, BowireRecording recording, double speed, ILogger logger, bool loop = false, TimeSpan? loopInterval = null)

Parameters

broker MqttServer

The embedded broker the recording is injected into.

recording BowireRecording

The capture whose MQTT steps are replayed.

speed double

Frame pacing inside one run: 1.0 keeps the captured cadence, 0 emits every frame immediately.

logger ILogger

Logger scoped to the mock server.

loop bool

Replay the recording on repeat while the mock is up.

loopInterval TimeSpan?

Explicit cycle length for loop mode, or null to pace cycles by the recording's own duration (#708). Zero asks for no pacing at all.

Methods

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask

Start()

Kick off the schedule on a background task.

public void Start()