Skip to content

TaskStepInfo

Record in Oadm.Sdk.Plugins · Oadm.Sdk.dll

Immutable view of one step. TaskStepInfo.Index is the position in the task’s step list (0-based).

public sealed record TaskStepInfo(int Index, string Name, TaskStepState State, string? Detail, int Progress, DateTimeOffset? StartedUtc, DateTimeOffset? FinishedUtc)

Parameters

  • Index: Position in the task’s step list, 0-based.
  • Name: The step name (“Upload firmware”).
  • State: Its state.
  • Detail: The result, progress detail, skip reason or error.
  • Progress: 0 to 100 while it runs.
  • StartedUtc: When it started.
  • FinishedUtc: When it ended.
string? Detail { get; init; }

The result, progress detail, skip reason or error.

DateTimeOffset? FinishedUtc { get; init; }

When it ended.

int Index { get; init; }

Position in the task’s step list, 0-based.

bool IsFinished { get; }

Ended: Done, Warning, Skipped or Failed.

string Name { get; init; }

The step name (“Upload firmware”).

int Progress { get; init; }

0 to 100 while it runs.

DateTimeOffset? StartedUtc { get; init; }

When it started.

TaskStepState State { get; init; }

Its state.