Interface IAsyncTask
Namespace: Aspose.Imaging.AsyncTask
Assembly: Aspose.Imaging.dll (25.2.0)
The asynchronous task.
public interface IAsyncTask : IAsyncResult, IDisposable
Implements
Properties
Error
Gets the task error which is available after the task is completed.
Exception Error { get; }
Property Value
IsBusy
Gets a value indicating whether this task is currently running.
bool IsBusy { get; }
Property Value
IsCanceled
Gets a value indicating whether this task was canceled.
bool IsCanceled { get; }
Property Value
IsFaulted
Gets a value indicating whether this task was faulted.
bool IsFaulted { get; }
Property Value
ProgressEventHandler
Gets or sets the progress event handler of the asynchronous task.
ProgressEventHandler ProgressEventHandler { get; set; }
Property Value
Result
Gets the result of this task.
object Result { get; }
Property Value
Methods
Abort()
Aborts this task. The task is completed immediately, with the risk of not freeing internal unmanaged resources.
void Abort()
Cancel()
Cancels this task. The task is completed safely by the controlled stopping of the algorithm.
void Cancel()
RunAsync()
Runs this task.
void RunAsync()
RunAsync(ThreadPriority)
Runs this task.
void RunAsync(ThreadPriority priority)
Parameters
priority
ThreadPriority
The thread priority.
SetCompleteCallback(CompleteCallback)
Sets the complete callback delegate.
void SetCompleteCallback(CompleteCallback completeCallback)
Parameters
completeCallback
CompleteCallback
The complete callback.