Lane
ConsoleMonster.Widgets
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
- Extension method Lane.Detail
- Extension method Lane.DetailText
- Extension method Lane.Errors
- Extension method Lane.Failed
- Extension method Lane.Finished
- Extension method Lane.Investigate
- Extension method Lane.Label
- Extension method Lane.LabelText
- Extension method Lane.NotRun
- Extension method Lane.Order
- Extension method Lane.Passed
- Extension method Lane.Skipped
- Extension method Lane.Started
- Extension method Lane.Status
- Extension method Lane.Total
- Extension method Lane.Value
- Extension method Lane.Warned
- Method LaneFluent.Detail
- Method LaneFluent.DetailText
- Method LaneFluent.Errors
- Method LaneFluent.Failed
- Method LaneFluent.Finished
- Method LaneFluent.Investigate
- Method LaneFluent.Label
- Method LaneFluent.LabelText
- Method LaneFluent.NotRun
- Method LaneFluent.Order
- Method LaneFluent.Passed
- Method LaneFluent.Skipped
- Method LaneFluent.Started
- Method LaneFluent.Status
- Method LaneFluent.Total
- Method LaneFluent.Value
- Method LaneFluent.Warned
- Method Lanes.Add
- Property Lanes.Items
Accepted by parameters 35
- Extension method Lane.Detail
- Extension method Lane.DetailText
- Extension method Lane.Errors
- Extension method Lane.Failed
- Extension method Lane.Finished
- Extension method Lane.Investigate
- Extension method Lane.Label
- Extension method Lane.LabelText
- Extension method Lane.NotRun
- Extension method Lane.Order
- Extension method Lane.Passed
- Extension method Lane.Skipped
- Extension method Lane.Started
- Extension method Lane.Status
- Extension method Lane.Total
- Extension method Lane.Value
- Extension method Lane.Warned
- Method LaneFluent.Detail
- Method LaneFluent.DetailText
- Method LaneFluent.Errors
- Method LaneFluent.Failed
- Method LaneFluent.Finished
- Method LaneFluent.Investigate
- Method LaneFluent.Label
- Method LaneFluent.LabelText
- Method LaneFluent.NotRun
- Method LaneFluent.Order
- Method LaneFluent.Passed
- Method LaneFluent.Skipped
- Method LaneFluent.Started
- Method LaneFluent.Status
- Method LaneFluent.Total
- Method LaneFluent.Value
- Method LaneFluent.Warned
- Method Lanes.Add
Constructors
public Lane(string key, string label) #Creates a lane.
Parameters
- key string
- Unique key.
- label string
- Display label (plain text).
Inherited Methods
Properties
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 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 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? Finished { get; set; } #When the lane finished (session time), if it has.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
lane.Detail = value; lane.Detail(value);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
- The instance.
- value ConsoleMonster.Text.RichText?
- The value.
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
- The instance.
- configure System.Action<ConsoleMonster.Text.RichText>
- Configures the value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value System.TimeSpan?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
lane.Label = value; lane.Label(value);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
- The instance.
- value ConsoleMonster.Text.RichText?
- The value.
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
- The instance.
- configure System.Action<ConsoleMonster.Text.RichText>
- Configures the value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value System.TimeSpan?
- The value.
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
- The instance.
- value ConsoleMonster.Styling.StatusKind
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
lane.Warned = value; lane.Warned(value);