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.
Properties
Section titled “Properties”DeviceId
Section titled “DeviceId”Guid DeviceId { get; init; }The task’s device.
IsActive
Section titled “IsActive”bool IsActive { get; }Queued or running: the task has not ended yet.
Message
Section titled “Message”string Message { get; init; }The error or warning of an ended task, else the latest progress message; may be empty.
Status
Section titled “Status”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.
TaskId
Section titled “TaskId”string TaskId { get; init; }The task’s id on the server (the same task as in the tasks pane).