Hide menu
Loading...
Searching...
No Matches
cadex.ProgressStatus.CancellationChecker Class Referenceabstract

Base abstract class for cancelation checker registered in ProgressStatus. More...

Inherits global.SystemIDisposable.

Public Member Functions

 CancellationChecker (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool Apply ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Base abstract class for cancelation checker registered in ProgressStatus.

Subclasses must redefined virtual operator() which returns a boolean value whether the operation has been canceled.

The redefined method must be thread-safe and fast enough as it can be called very frequently and from multiple threads.

Once the checker has returned true the value is stored and no further calls are made. The observers registered in ProgressStatus get notified by calling their methods ProgressStatus.Observer.Canceled().