Skip to content
ConsoleMonster
Class

LiveSessionCounters

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed

A point-in-time snapshot of a live session's counters and errors (LiveSession.GetCounters).

Inheritance

  • object
  • LiveSessionCounters

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 LiveSessionCounters(long eventsPosted, long eventsApplied, long eventsDropped, long applyErrors, long renderErrors, long framesRendered, long resizes, IReadOnlyDictionary<string, long> unknownTargets, Exception? lastError, Exception? failure) #

Creates a snapshot.

Parameters

eventsPosted long required
Events accepted.
eventsApplied long required
Events applied.
eventsDropped long required
Events ignored (unknown target, or posted after admission closed).
applyErrors long required
Target Apply calls that threw.
renderErrors long required
Frames replaced by the one-line error note.
framesRendered long required
Frames rendered.
resizes long required
Size changes redrawn.
unknownTargets System.Collections.Generic.IReadOnlyDictionary<string, long> required
Target names that received events but do not exist, with event counts.
lastError System.Exception? required
The most recent error, or null.
failure System.Exception? required
The error that ended the session early, or null.

Properties

public long EventsPosted { get; } #

Events accepted before shutdown closed admission.

public long EventsApplied { get; } #

Events applied successfully.

public long EventsDropped { get; } #

Events ignored: sent to an unknown target, or posted after admission closed.

public long ApplyErrors { get; } #

Target Apply calls that threw.

public long RenderErrors { get; } #

Frames where the layout threw and a one-line note was shown instead.

public long FramesRendered { get; } #

Frames rendered, including the final frame.

public long Resizes { get; } #

Size changes the session redrew for.

public IReadOnlyDictionary<string, long> UnknownTargets { get; } #

Target names that received events but are not registered (typos such as lanez), with event counts.

public long UnknownTargetEvents { get; } #

Events sent to unknown targets.

public Exception? LastError { get; } #

The most recent target, rendering, recording or cleanup error, or null.

public Exception? Failure { get; } #

The error that ended the session early, or null.

public bool HasProblems { get; } #

Whether anything went wrong: failed updates, failed frames, unknown targets or an early end.