Class
LanesHandle
ConsoleMonster.Widgets
Thread-safe live handle for a Lanes widget.
Inheritance
- LiveHandle
- LanesHandle
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
- Method Lanes.Handle
Constructors
public LanesHandle(ILiveDispatcher dispatcher, string widgetId) #Creates a handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- widgetId string
- The lanes name.
Methods
public void Add(string key, string? label = null, double total = 0) #Adds a lane.
Parameters
- key string
- Unique key.
- label string? = null
- Label, or null for the key.
- total double = 0
- 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
- The lane.
- result ConsoleMonster.Styling.StatusKind = Pass
- The step result (counted as passed, failed, warning or skipped).
- detail string? = null
- What the lane is doing next, or null.
- increment double = 1
- 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
- The lane.
- status ConsoleMonster.Styling.StatusKind? = null
- 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
- The lane.
- detail string
- The detail.
public void Start(string key, string? detail = null) #Marks a lane as running.
Parameters
- key string
- The lane.
- detail string? = null
- What it is doing.