Interface IAsyncTaskState

Interface IAsyncTaskState

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

Provides access to the state of the asynchronous task.

public interface IAsyncTaskState
{
    bool IsCompleted { get; }
    bool IsFaulted { get; }
    Task<object> GetResult();
    Exception GetException();
}

Properties

IsCanceled

Gets a value indicating whether the asynchronous task is canceled.

bool IsCanceled
{
    get;
}

Property Value

bool

Progress

Gets the progress of the asynchronous task.

EventType Progress {
      get;
   }

Property Value

EventType

Methods

IncrementProgressMaxValue(int)

Increments the progress maximum value.

void IncrementProgressMaxValue(int value)
   {
      _progressMax = Math.Max(_progressMax, value);
   }

Parameters

value int

The increase value.

IndicateProgress(EventType)

Sets the progress of the asynchronous task.

void IndicateProgress(EventType eventType)
   {
   }

Parameters

eventType EventType

The progress state.

 English