Skip to content
ConsoleMonster
Class

LiveRecorder

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Implements
IDisposable
Modifiers
sealed

Writes dependency-free JSON-lines recordings. Calls must be serialized by the owner.

Inheritance

  • object
  • LiveRecorder

Constructors

public LiveRecorder(TextWriter writer, bool leaveOpen = true) #

Creates a recorder and writes its version header.

Parameters

writer System.IO.TextWriter required
Destination.
leaveOpen bool = true optional
Whether disposal leaves the destination open.

Methods

public void Dispose() #

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Flush() #

Flushes the recording.

public void Write(LiveEvent liveEvent) #

Records an applied event with invariant, round-trip numeric values.

Parameters

liveEvent ConsoleMonster.Live.LiveEvent required
The event.