Skip to content
ConsoleMonster

API Reference

Class

ReplayMarker

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, Boolean isLog = false) #

Creates a marker.

Parameters

time System.TimeSpan requiredposition: 0
Time from the start of the recording.
kind ConsoleMonster.Replay.ReplayMarkerKind requiredposition: 1
What it is.
text System.String requiredposition: 2
Plain text describing it.
isLog System.Boolean = false optionalposition: 3
Whether it comes from a log line (failures and warnings can).

Methods

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

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> requiredposition: 0
The events in recording order.

Returns

The markers in time order.

public override String ToString() #
Returns: String

Returns a string that represents the current object.

Returns

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 Boolean IsLog { get; } #

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