Skip to content
ConsoleMonster
Class

ReplayMarker

ConsoleMonster.Replay

Namespace
ConsoleMonster.Replay
Assembly
ConsoleMonster
Modifiers
sealed

A point of interest on a replay timeline: a marker, failure, warning or log entry.

Inheritance

  • object
  • ReplayMarker

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public ReplayMarker(TimeSpan time, ReplayMarkerKind kind, string text, bool isLog = false) #

Creates a marker.

Parameters

time System.TimeSpan required
Time from the start of the recording.
kind ConsoleMonster.Replay.ReplayMarkerKind required
What it is.
text string required
Plain text describing it.
isLog bool = false optional
Whether it comes from a log line (failures and warnings can).

Methods

public static IReadOnlyList<ReplayMarker> From(IEnumerable<LiveEvent> events) #

Finds the markers in recorded events: LiveSession.MarkerTarget events, transitions to a fail or warn state, and log lines (error and warning lines count as failures and warnings).

Parameters

events System.Collections.Generic.IEnumerable<ConsoleMonster.Live.LiveEvent> required
The events in recording order.

Returns

IReadOnlyList<ReplayMarker> The markers in time order.
public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public TimeSpan Time { get; } #

Time from the start of the recording.

public ReplayMarkerKind Kind { get; } #

What it is.

public string Text { get; } #

Plain text describing it (the marker label, log line, or target and state).

public bool IsLog { get; } #

Whether it comes from a log line, so the log search and log jumps include it.