API Reference
Class
ReplayPlayer
Rewinds runs: an in-terminal player for recordings (the JSON-lines files written with LiveSessionOptions.RecordPath or LiveSessionOptions.AutoRecord). The recording is played into the same dashboard definition, then shown with play/pause, speed, frame stepping, a timeline to scrub, jumps to markers, failures, warnings and log entries, and a search over the log. Without an interactive console it prints the markers as lines instead.
Inheritance
- Object
- ReplayPlayer
Methods
public static String FormatTime(TimeSpan time) #Returns:
StringFormats a timeline position as m:ss.f (or h:mm:ss past an hour).
Parameters
- time System.TimeSpan
- The position.
Returns
The text.
Play 2 overloads
public static Void Play(IWidget root, TextReader jsonLines, ReplayOptions? options = null, CancellationToken cancellationToken = default) #Returns:
VoidPlays a recording.
Parameters
- root ConsoleMonster.Layout.IWidget
- The dashboard (or any widget tree) whose widget names match the recording.
- jsonLines System.IO.TextReader
- The recording.
- options ConsoleMonster.Replay.ReplayOptions? = null
- Options, or null.
- cancellationToken System.Threading.CancellationToken = default
- Ends the player.
public static Void Play(IWidget root, IReadOnlyList<LiveEvent> events, ReplayOptions? options = null, CancellationToken cancellationToken = default) #Returns:
VoidPlays recorded events.
Parameters
- root ConsoleMonster.Layout.IWidget
- The dashboard (or any widget tree) whose widget names match the recording.
- events System.Collections.Generic.IReadOnlyList<ConsoleMonster.Live.LiveEvent>
- The events in recording order.
- options ConsoleMonster.Replay.ReplayOptions? = null
- Options, or null.
- cancellationToken System.Threading.CancellationToken = default
- Ends the player.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?