Class BulkTaskFinalizedEventArgs<TId, TResult>
OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs<TId, TResult>
Provides event data for the BulkAggregateTask<TId, TResult>.OnTaskFinalized event.
Namespace: OptimaJet.Workflow.Core.Runtime.Bulk
public class BulkTaskFinalizedEventArgs<TId, TResult> : EventArgsInheritance
- Object
- EventArgs
Constructors
public BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>> results, TId lastFinalizedTaskId) #Initializes a new instance of BulkTaskFinalizedEventArgs<TId, TResult>.
Parameters
Name
Type
Description
resultsDictionary<TId, BulkTaskResult<TResult>>A dictionary containing intermediate results for all tasks being tracked.
lastFinalizedTaskId{TId}The identifier of the last completed task.
Properties
Name
Type
Results #Dictionary<TId, BulkTaskResult<TResult>>Gets the dictionary of task identifiers and their current BulkTaskResult<TResult> values.
LastFinalizedTaskId #{TId}The identifier of the last finalized task.
LastFinalizedTaskResult #BulkTaskResult<TResult>Gets the BulkTaskResult<TResult> of the task identified by BulkTaskFinalizedEventArgs<TId, TResult>.LastFinalizedTaskId.
Count #Int32Gets the total number of tracked tasks.
NotRanCount #Int32Gets the number of tasks currently in the BulkTaskState.Created state.
CompletedCount #Int32Gets the number of tasks currently in the BulkTaskState.Completed state.
FailedCount #Int32Gets the number of tasks currently in the BulkTaskState.Failed state.
FinalizedCount #Int32Gets the number of tasks in the finalized states: BulkTaskState.Completed or BulkTaskState.Failed.
Progress #DecimalGets the proportion of tasks with finalized results (BulkTaskFinalizedEventArgs<TId, TResult>.FinalizedCount) out of all tasks (BulkTaskFinalizedEventArgs<TId, TResult>.Count).