IAsyncTask

IAsyncTask interface

The asynchronous task.

public interface IAsyncTask : IAsyncResult, IDisposable

Properties

Name Description
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.
ProgressEventHandler { get; set; } Gets or sets the progress event handler of the asynchronous task.
Result { get; } Gets the result of this task.

Methods

Name Description
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.

See Also