Skip to content
ConsoleMonster
Class

LanesHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe live handle for a Lanes 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 LanesHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

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

Methods

public void Add(string key, string? label = null, double total = 0) #

Adds a lane.

Parameters

key string required
Unique key.
label string? = null optional
Label, or null for the key.
total double = 0 optional
Planned steps.
public void Advance(string key, StatusKind result = Pass, string? detail = null, double increment = 1) #

Records completed steps and their result.

Parameters

key string required
The lane.
result ConsoleMonster.Styling.StatusKind = Pass optional
The step result (counted as passed, failed, warning or skipped).
detail string? = null optional
What the lane is doing next, or null.
increment double = 1 optional
Steps completed (default 1).
public void Complete(string key, StatusKind? status = null) #

Finishes a lane; without a status it becomes Fail when any step failed, Warn when any warned, else Pass.

Parameters

key string required
The lane.
status ConsoleMonster.Styling.StatusKind? = null optional
The final status, or null to derive it.
public void Detail(string key, string detail) #

Sets what the lane is doing now.

Parameters

key string required
The lane.
detail string required
The detail.
public void Start(string key, string? detail = null) #

Marks a lane as running.

Parameters

key string required
The lane.
detail string? = null optional
What it is doing.