Skip to content

TaskRunState

Record in Oadm.Sdk.Client · Oadm.Sdk.Client.dll

One task (one device) of a run that a dialog started with ITaskDialogContext.RunTaskAsync.

public sealed record TaskRunState(Guid DeviceId, string TaskId, TaskRunStatus Status, string Step, string Message)

Parameters

  • DeviceId: The task’s device.
  • TaskId: The task’s id on the server (the same task as in the tasks pane).
  • Status: Where it stands.
  • Step: The step it is on, as the tasks pane shows it (“Step 3/6 · Wait for the https certificate”); empty without steps.
  • Message: The error or warning of an ended task, else the latest progress message; may be empty.
Guid DeviceId { get; init; }

The task’s device.

bool IsActive { get; }

Queued or running: the task has not ended yet.

string Message { get; init; }

The error or warning of an ended task, else the latest progress message; may be empty.

TaskRunStatus Status { get; init; }

Where it stands.

string Step { get; init; }

The step it is on, as the tasks pane shows it (“Step 3/6 · Wait for the https certificate”); empty without steps.

string TaskId { get; init; }

The task’s id on the server (the same task as in the tasks pane).