Class TaskState
Compute task state.
public sealed record TaskState : IEquatable<TaskState>
- Inheritance
-
TaskState
- Implements
- Inherited Members
Constructors
TaskState(Guid, TaskStatus, Instant, Instant?, Instant?)
Compute task state.
public TaskState(Guid Id, TaskStatus Status, Instant CreateTime, Instant? StartTime, Instant? FinishTime)
Parameters
IdGuidTask ID.
StatusTaskStatusTask status.
CreateTimeInstantCreate time.
StartTimeInstant?Start time (
nullwhen not yet started).FinishTimeInstant?Finish time (
nullwhen not yet finished).
Properties
CreateTime
Create time.
public Instant CreateTime { get; init; }
Property Value
FinishTime
Finish time (null when not yet finished).
public Instant? FinishTime { get; init; }
Property Value
Id
Task ID.
public Guid Id { get; init; }
Property Value
StartTime
Start time (null when not yet started).
public Instant? StartTime { get; init; }
Property Value
Status
Task status.
public TaskStatus Status { get; init; }