C# Class Opc.Ua.AsyncResultBase

A base class for AsyncResult objects
Inheritance: IAsyncResult, IDisposable
ファイルを表示 Open project: OPCFoundation/Misc-Tools Class Usage Examples

Public Methods

Method Description
AsyncResultBase ( AsyncCallback callback, object callbackData, int timeout ) : System

Initializes a new instance of the AsyncResultBase class.

Dispose ( ) : void

Frees any unmanaged resources.

OperationCompleted ( ) : void

Called to invoke the callback after the asynchronous operation completes.

WaitForComplete ( ) : bool

Waits for the operation to complete.

WaitForComplete ( IAsyncResult ar ) : void

Waits for the operation to complete.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
OnTimeout ( object state ) : void

Called when the operation times out.

Method Details

AsyncResultBase() public method

Initializes a new instance of the AsyncResultBase class.
public AsyncResultBase ( AsyncCallback callback, object callbackData, int timeout ) : System
callback AsyncCallback The callback to use when the operation completes.
callbackData object The callback data.
timeout int The timeout for the operation.
return System

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

OperationCompleted() public method

Called to invoke the callback after the asynchronous operation completes.
public OperationCompleted ( ) : void
return void

WaitForComplete() public method

Waits for the operation to complete.
public WaitForComplete ( ) : bool
return bool

WaitForComplete() public static method

Waits for the operation to complete.
public static WaitForComplete ( IAsyncResult ar ) : void
ar IAsyncResult The result object returned from the Begin method.
return void