Skip to content
ConsoleMonster

API Reference

Class

LiveRecorder

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, Boolean leaveOpen = true) #

Creates a recorder and writes its version header.

Parameters

writer System.IO.TextWriter requiredposition: 0
Destination.
leaveOpen System.Boolean = true optionalposition: 1
Whether disposal leaves the destination open.

Methods

public Void Dispose() #
Returns: Void

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

public Void Flush() #
Returns: Void

Flushes the recording.

public Void Write(LiveEvent liveEvent) #
Returns: Void

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

Parameters

liveEvent ConsoleMonster.Live.LiveEvent requiredposition: 0
The event.