Skip to content
ConsoleMonster
Class

RunUpdate

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed

An update to one item of a caller-managed run.

Inheritance

  • object
  • RunUpdate

Usage

Explore 21 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 10

Accepted by parameters 11

Constructors

public RunUpdate() #

Properties

public int Index { get; set; } #

The zero-based item position.

public StatusKind Status { get; set; } #

Running, Pass, Fail, Warn or Skip.

public string? Label { get; set; } #

The current phase label.

public string? Detail { get; set; } #

The completion detail.

public TimeSpan? Duration { get; set; } #

An optional measured duration.

Extension Methods

public static RunUpdate Detail(RunUpdate runUpdate, string? value) #

Sets RunUpdate.Detail: The completion detail.

Parameters

runUpdate ConsoleMonster.Live.RunUpdate required
The instance.
value string? required
The value.

Returns

RunUpdate The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ConsoleMonster.Live.RunUpdate { Detail = value };    runUpdate.Detail(value);
public static RunUpdate Duration(RunUpdate runUpdate, TimeSpan? value) #

Sets RunUpdate.Duration: An optional measured duration.

Parameters

runUpdate ConsoleMonster.Live.RunUpdate required
The instance.
value System.TimeSpan? required
The value.

Returns

RunUpdate The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::ConsoleMonster.Live.RunUpdate { Duration = value };    runUpdate.Duration(value);
public static RunUpdate Index(RunUpdate runUpdate, int value) #

Sets RunUpdate.Index: The zero-based item position.

Parameters

runUpdate ConsoleMonster.Live.RunUpdate required
The instance.
value int required
The value.

Returns

RunUpdate The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::ConsoleMonster.Live.RunUpdate { Index = value };    runUpdate.Index(value);
public static RunUpdate Label(RunUpdate runUpdate, string? value) #

Sets RunUpdate.Label: The current phase label.

Parameters

runUpdate ConsoleMonster.Live.RunUpdate required
The instance.
value string? required
The value.

Returns

RunUpdate The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::ConsoleMonster.Live.RunUpdate { Label = value };    runUpdate.Label(value);
public static RunUpdate Status(RunUpdate runUpdate, StatusKind value) #

Sets RunUpdate.Status: Running, Pass, Fail, Warn or Skip.

Parameters

runUpdate ConsoleMonster.Live.RunUpdate required
The instance.
value ConsoleMonster.Styling.StatusKind required
The value.

Returns

RunUpdate The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ConsoleMonster.Live.RunUpdate { Status = value };    runUpdate.Status(value);