Interface IAsyncTask

Interface IAsyncTask

Namespace: Aspose.Imaging.AsyncTask
Assembly: Aspose.Imaging.dll (25.2.0)

The asynchronous task.

public interface IAsyncTask : IAsyncResult, IDisposable

Implements

IAsyncResult, IDisposable

Properties

Error

Gets the task error which is available after the task is completed.

Exception Error { get; }

Property Value

Exception

IsBusy

Gets a value indicating whether this task is currently running.

bool IsBusy { get; }

Property Value

bool

IsCanceled

Gets a value indicating whether this task was canceled.

bool IsCanceled { get; }

Property Value

bool

IsFaulted

Gets a value indicating whether this task was faulted.

bool IsFaulted { get; }

Property Value

bool

ProgressEventHandler

Gets or sets the progress event handler of the asynchronous task.

ProgressEventHandler ProgressEventHandler { get; set; }

Property Value

ProgressEventHandler

Result

Gets the result of this task.

object Result { get; }

Property Value

object

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.

See Also

IAsyncResult, IDisposable