Interface IAsyncTask

IAsyncTask interface

The asynchronous task.

public interface IAsyncTask : IAsyncResult, IDisposable

Properties

NameDescription
Error { get; }Gets the task error which is available after the task is completed.
IsBusy { get; }Gets a value indicating whether this task is currently running.
IsCanceled { get; }Gets a value indicating whether this task was canceled.
IsFaulted { get; }Gets a value indicating whether this task was faulted.
Progress { get; }Gets the progress of the asynchronous task.
Result { get; }Gets the result of this task.

Methods

NameDescription
Abort()Aborts this task. The task is completed immediately, with the risk of not freeing internal unmanaged resources.
Cancel()Cancels this task. The task is completed safely by the controlled stopping of the algorithm.
RunAsync()Runs this task.
RunAsync(ThreadPriority)Runs this task.
SetCompleteCallback(CompleteCallback)Sets the complete callback delegate.
SetProgressCallback(ProgressCallback)Sets the progress callback delegate.

See Also