Skip to content
ConsoleMonster
Class

PhasesHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe live handle for a Phases widget.

Inheritance

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 PhasesHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher.
widgetId string required
The phases name.

Methods

public void Complete(string key, StatusKind status = Pass, string? detail = null) #

Finishes a phase.

Parameters

key string required
The phase.
status ConsoleMonster.Styling.StatusKind = Pass optional
The final status.
detail string? = null optional
A detail (default: the measured duration).
public void Detail(string key, string detail) #

Sets a phase's detail (for example a percentage).

Parameters

key string required
The phase.
detail string required
The detail.
public void Item(string phase, string key, StatusKind status, string? detail = null) #

Adds or updates an item of a phase; the running phase fans out to its items.

Parameters

phase string required
The phase key.
key string required
The item key within the phase.
status ConsoleMonster.Styling.StatusKind required
The item status.
detail string? = null optional
A detail, or null to keep the existing one.
public void Start(string key) #

Marks a phase as running (its duration is measured until the next state change).

Parameters

key string required
The phase.