Task Completed Handler Delegate
Task completed delegate.
Definition
Namespace: OpenDiscoverSDK.Platform
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2026.2.6.0 (2026.02.06)
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2026.2.6.0 (2026.02.06)
C#
public delegate void TaskCompletedHandler(
bool completedButHasZombieDocumentThread,
double totalElapsedSeconds,
TaskRunMetrics metrics
)Parameters
- completedButHasZombieDocumentThread Boolean
If this argument is true, then the DocumentTaskEngine processing task had a long running (hung) document warning and fired the LongProcessingDocumentWarning event at least once. For 'completedWithLongRunningDocument' to be true, the event handler for the LongProcessingDocumentWarning event set the boolean "prepareForAbort" reference argument to true. This allowed the running task to set the long running document record's Result to LongRunningProcessingError and to also then save and close the document data archive (.dda) and, optionally (if selected output mode), the text data archive (.tda), and attachment data archives (.ada) to be closed.
The task must now be manually forced aborted using AbortTask method due to long running document extractor thread (zombie) in the Completed event handler BUT not until after developer notifies any supporting infrastructure implementation (job manager, database, web service) of task's completed state, as they normally would.- totalElapsedSeconds Double
- Total time task run time in seconds.
- metrics TaskRunMetrics
- An object that details task metrics.