Class BulkTaskFinalizedEventArgs<TId, TResult>
Event arguments for the OptimaJet.Workflow.Core.Runtime.Bulk.BulkAggregateTask%602.OnTaskFinalized event handler.
Inheritance
↳ object
↳ EventArgs
↳ BulkTaskFinalizedEventArgs<TId, TResult>
Inherited Members
Empty
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Runtime.Bulk
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class BulkTaskFinalizedEventArgs<TId, TResult> : EventArgs
Constructors
BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>>, TId)
Event arguments for the OptimaJet.Workflow.Core.Runtime.Bulk.BulkAggregateTask%602.OnTaskFinalized event handler.
Declarationpublic BulkTaskFinalizedEventArgs(Dictionary<TId, BulkTaskResult<TResult>> results, TId lastFinalizedTaskId)
Type | Name | Description |
---|---|---|
Dictionary<TId, BulkTaskResult<TResult>> | results | A dictionary containing intermediate results for the ongoing tasks. Initially, all values are set to <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601.Empty" data-throw-if-not-resolved="false"></xref>, but as the task progresses, the dictionary will be populated with the results and statuses of executed tasks. It's important to note that the dictionary does not update the result value when transitioning from the <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskState.Created" data-throw-if-not-resolved="false"></xref> to <xref href="OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskState.Running" data-throw-if-not-resolved="false"></xref> state for performance reasons. |
{TId} | lastFinalizedTaskId | The identifier of the last completed task. |
Properties
Results
A dictionary containing intermediate results for the ongoing tasks. Initially, all values are set to OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601.Empty, but as the task progresses, the dictionary will be populated with the results and statuses of executed tasks. It's important to note that the dictionary does not update the result value when transitioning from the BulkTaskState.Created to BulkTaskState.Running state for performance reasons.
Declarationpublic Dictionary<TId, BulkTaskResult<TResult>> Results { get; }
Type | Description |
---|---|
Dictionary<TId, BulkTaskResult<TResult>> |
LastFinalizedTaskId
The identifier of the last finalized task.
Declarationpublic TId LastFinalizedTaskId { get; }
Type | Description |
---|---|
{TId} |
LastFinalizedTaskResult
The OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskResult%601 of the last finalized task.
Declarationpublic BulkTaskResult<TResult> LastFinalizedTaskResult { get; }
Type | Description |
---|---|
BulkTaskResult<<TResult>> |
Count
Gets the total number of tasks.
Declarationpublic int Count { get; }
Type | Description |
---|---|
int |
NotRanCount
Gets the number of tasks with the status BulkTaskState.Created.
Declarationpublic int NotRanCount { get; }
Type | Description |
---|---|
int |
CompletedCount
Gets the number of tasks with the status BulkTaskState.Completed.
Declarationpublic int CompletedCount { get; }
Type | Description |
---|---|
int |
FailedCount
Gets the number of tasks with the status BulkTaskState.Failed.
Declarationpublic int FailedCount { get; }
Type | Description |
---|---|
int |
FinalizedCount
Gets the number of tasks with the status BulkTaskState.Completed or BulkTaskState.Failed.
Declarationpublic int FinalizedCount { get; }
Type | Description |
---|---|
int |
Progress
Gets the ratio of OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs%602.FinalizedCount to OptimaJet.Workflow.Core.Runtime.Bulk.BulkTaskFinalizedEventArgs%602.Count.
Declarationpublic decimal Progress { get; }
Type | Description |
---|---|
decimal |