Skip to content
ConsoleMonster
Class

Lane

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

One row of a Lanes widget: a worker, server or item with progress and result counts.

Inheritance

  • object
  • Lane

Usage

Explore 71 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 36

Accepted by parameters 35

Constructors

public Lane(string key, string label) #

Creates a lane.

Parameters

key string required
Unique key.
label string required
Display label (plain text).

Properties

public string Key { get; } #

Unique key.

public string Label { get; set; } #

Display label (literal; setting it clears Lane.LabelText).

public RichText? LabelText { get; set; } #

A multicolour label, or null for the literal Lane.Label (which becomes its plain text).

public double Total { get; set; } #

Planned steps (0 = unknown).

public double Value { get; set; } #

Completed steps.

public int Passed { get; set; } #

Steps that passed.

public int Failed { get; set; } #

Steps that failed.

public int Warned { get; set; } #

Steps with warnings.

public int Skipped { get; set; } #

Steps skipped.

public int Errors { get; set; } #

Steps that could not run to a verdict (StatusKind.Error); a count column shows once a lane has one.

public int Investigate { get; set; } #

Steps to investigate (StatusKind.Investigate); a count column shows once a lane has one.

public int NotRun { get; set; } #

Steps not run (StatusKind.NotRun); a count column shows once a lane has one.

public StatusKind Status { get; set; } #

The lane status.

public string? Detail { get; set; } #

What the lane is doing now (current rule, step, file); literal, and setting it clears Lane.DetailText.

public RichText? DetailText { get; set; } #

A multicolour detail, or null for the literal Lane.Detail (which becomes its plain text).

public TimeSpan? Started { get; set; } #

When the lane started (session time), if it has.

public TimeSpan? Finished { get; set; } #

When the lane finished (session time), if it has.

public int Order { get; set; } #

Insertion order, used to keep rows stable.

public bool IsFinished { get; } #

Whether the lane has finished.

public double Fraction { get; } #

The fraction complete (0-1); finished lanes are 1.

Extension Methods

public static Lane Detail(Lane lane, string? value) #

Sets Lane.Detail: What the lane is doing now (current rule, step, file); literal, and setting it clears Lane.DetailText.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value string? required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Detail = value;             lane.Detail(value);
DetailText 2 overloads
public static Lane DetailText(Lane lane, RichText? value) #

Sets Lane.DetailText: A multicolour detail, or null for the literal Lane.Detail (which becomes its plain text).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value ConsoleMonster.Text.RichText? required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.DetailText = value;         lane.DetailText(value);
public static Lane DetailText(Lane lane, Action<RichText> configure) #

Configures Lane.DetailText in place: A multicolour detail, or null for the literal Lane.Detail (which becomes its plain text).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
configure System.Action<ConsoleMonster.Text.RichText> required
Configures the value.

Returns

Lane The same instance.
public static Lane Errors(Lane lane, int value) #

Sets Lane.Errors: Steps that could not run to a verdict (StatusKind.Error); a count column shows once a lane has one.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Errors = value;             lane.Errors(value);
public static Lane Failed(Lane lane, int value) #

Sets Lane.Failed: Steps that failed.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Failed = value;             lane.Failed(value);
public static Lane Finished(Lane lane, TimeSpan? value) #

Sets Lane.Finished: When the lane finished (session time), if it has.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value System.TimeSpan? required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Finished = value;           lane.Finished(value);
public static Lane Investigate(Lane lane, int value) #

Sets Lane.Investigate: Steps to investigate (StatusKind.Investigate); a count column shows once a lane has one.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Investigate = value;        lane.Investigate(value);
public static Lane Label(Lane lane, string value) #

Sets Lane.Label: Display label (literal; setting it clears Lane.LabelText).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value string required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Label = value;              lane.Label(value);
LabelText 2 overloads
public static Lane LabelText(Lane lane, RichText? value) #

Sets Lane.LabelText: A multicolour label, or null for the literal Lane.Label (which becomes its plain text).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value ConsoleMonster.Text.RichText? required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.LabelText = value;          lane.LabelText(value);
public static Lane LabelText(Lane lane, Action<RichText> configure) #

Configures Lane.LabelText in place: A multicolour label, or null for the literal Lane.Label (which becomes its plain text).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
configure System.Action<ConsoleMonster.Text.RichText> required
Configures the value.

Returns

Lane The same instance.
public static Lane NotRun(Lane lane, int value) #

Sets Lane.NotRun: Steps not run (StatusKind.NotRun); a count column shows once a lane has one.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.NotRun = value;             lane.NotRun(value);
public static Lane Order(Lane lane, int value) #

Sets Lane.Order: Insertion order, used to keep rows stable.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Order = value;              lane.Order(value);
public static Lane Passed(Lane lane, int value) #

Sets Lane.Passed: Steps that passed.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Passed = value;             lane.Passed(value);
public static Lane Skipped(Lane lane, int value) #

Sets Lane.Skipped: Steps skipped.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Skipped = value;            lane.Skipped(value);
public static Lane Started(Lane lane, TimeSpan? value) #

Sets Lane.Started: When the lane started (session time), if it has.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value System.TimeSpan? required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Started = value;            lane.Started(value);
public static Lane Status(Lane lane, StatusKind value) #

Sets Lane.Status: The lane status.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value ConsoleMonster.Styling.StatusKind required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Status = value;             lane.Status(value);
public static Lane Total(Lane lane, double value) #

Sets Lane.Total: Planned steps (0 = unknown).

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value double required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Total = value;              lane.Total(value);
public static Lane Value(Lane lane, double value) #

Sets Lane.Value: Completed steps.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value double required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Value = value;              lane.Value(value);
public static Lane Warned(Lane lane, int value) #

Sets Lane.Warned: Steps with warnings.

Parameters

lane ConsoleMonster.Widgets.Lane required
The instance.
value int required
The value.

Returns

Lane The same instance.

Examples

// C# initializer or property    // C# fluent
lane.Warned = value;             lane.Warned(value);