Class BulkTaskResult<TResult>
OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult<TResult>
A record that stores details about the result of task execution. For tasks that have not completed yet, BulkTaskResult<TResult>.Empty is used.
Namespace: OptimaJet.Workflow.Core.Runtime.Bulk
public record BulkTaskResult<TResult> : IEquatable<BulkTaskResult<TResult>>Inheritance
- System.Object
Implemented Interfaces
- System.IEquatable{OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult`1}
Constructors
public BulkTaskResult(BulkTaskState State, TResult? Result = default, Exception? Exception = null, DateTimeOffset? StartedAt = null, DateTimeOffset? FinalizedAt = null) #A record that stores details about the result of task execution. For tasks that have not completed yet, BulkTaskResult<TResult>.Empty is used.
Parameters
Name
Type
Description
StateBulkTaskStateThe state of the task.
Result{TResult}If the task has completed with the status BulkTaskState.Completed, the result will be stored here; otherwise, it will be null.
ExceptionExceptionIf the task has completed with the status BulkTaskState.Failed, the exception will be stored here; otherwise, it will be null.
StartedAtNullable<DateTimeOffset>The time recorded immediately after changing the task status to BulkTaskState.Running and before the start of the task execution.
FinalizedAtNullable<DateTimeOffset>The time recorded before generating and returning the result of the task execution, after changing the state to BulkTaskState.Completed or BulkTaskState.Failed.
Properties
Name
Type
State #BulkTaskStateThe state of the task.
Result #{TResult}If the task has completed with the status BulkTaskState.Completed, the result will be stored here; otherwise, it will be null.
Exception #ExceptionIf the task has completed with the status BulkTaskState.Failed, the exception will be stored here; otherwise, it will be null.
StartedAt #Nullable<DateTimeOffset>The time recorded immediately after changing the task status to BulkTaskState.Running and before the start of the task execution.
FinalizedAt #Nullable<DateTimeOffset>The time recorded before generating and returning the result of the task execution, after changing the state to BulkTaskState.Completed or BulkTaskState.Failed.
Empty #BulkTaskResult<TResult>The result used for an incomplete task.
Duration #Nullable<TimeSpan>The duration of task execution.