Skip to content

TaskOutcome

Record in Oadm.Sdk.Tasks · Oadm.Sdk.dll

The end of a task (ITaskRunner.GetOutcomeAsync, SDK 0.7.0).

public sealed record TaskOutcome(Guid DeviceId, TaskEndState State, string? Message)

Parameters

  • DeviceId: The task’s device.
  • State: How it ended.
  • Message: Its last message (error, warning or progress), as the tasks pane shows it; null without one.
Guid DeviceId { get; init; }

The task’s device.

string? Message { get; init; }

Its last message (error, warning or progress), as the tasks pane shows it; null without one.

TaskEndState State { get; init; }

How it ended.