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
Id
GuidTask ID.
Status
TaskStatusTask status.
CreateTime
InstantCreate time.
StartTime
Instant?Start time (
null
when not yet started).FinishTime
Instant?Finish time (
null
when 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; }