Table of Contents

Class AsyncResult

Namespace
Arc4u.Threading
Assembly
Arc4u.Threading.dll

The AsyncResult class is to perform asynchronous task. This is important when multiple asynchronous tasks are done in a ASP.Net page for sample.

public class AsyncResult : IAsyncResult
Inheritance
AsyncResult
Implements
Inherited Members

Constructors

AsyncResult(AsyncCallback, object)

Initializes a new instance of the AsyncResult class.

public AsyncResult(AsyncCallback cb, object state)

Parameters

cb AsyncCallback

The cb.

state object

The state.

Properties

AsyncState

Gets a user-defined object that qualifies or contains information about an asynchronous operation.

public object AsyncState { get; }

Property Value

object

AsyncWaitHandle

Gets a WaitHandle that is used to wait for an asynchronous operation to complete.

public WaitHandle AsyncWaitHandle { get; }

Property Value

WaitHandle

CompletedSynchronously

Gets an indication of whether the asynchronous operation completed synchronously.

public bool CompletedSynchronously { get; }

Property Value

bool

IsCompleted

Gets an indication whether the asynchronous operation has completed.

public bool IsCompleted { get; }

Property Value

bool

Methods

CompleteCall()

Complete call must be called when all the asynchronous tasks are done and release the locked thread to perform the remaining work.

public void CompleteCall()