C# Class Opc.Ua.AsyncResultBase

A base class for AsyncResult objects
Inheritance: IAsyncResult, IDisposable
Afficher le fichier Open project: OPCFoundation/Misc-Tools Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode Description
OnTimeout ( object state ) : void

Called when the operation times out.

Method Details

AsyncResultBase() public méthode

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.
Résultat System

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OperationCompleted() public méthode

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

WaitForComplete() public méthode

Waits for the operation to complete.
public WaitForComplete ( ) : bool
Résultat bool

WaitForComplete() public static méthode

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