Click or drag to resize

TaskCompletedHandler Delegate

Task completed delegate.

Namespace: OpenDiscoverSDK.Platform
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2025.4.4.0 (2025.4.4)
Syntax
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 [!:ContentResult.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.
See Also