ThreadWorker CleanupDueToAbort Method CleanCode C# Libraries v1.2.03 API
Tells the ThreadManager that this background task is complete due to a user-initiated abort.

Namespace: CleanCode.Threading
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public void CleanupDueToAbort()
Remarks

Typically Cleanup  should be called in the normal processing loop while CleanupDueToAbort should be used in a specific check for a user-initiated abort, as in:
if (threadManager.AbortRequested) { CleanupDueToAbort(); return true; }
See Also