C# Class Renci.SshNet.Common.AsyncResult

Base class to encapsulates the results of an asynchronous operation.
Inheritance: IAsyncResult
Afficher le fichier Open project: sshnet/SSH.NET

Méthodes publiques

Méthode Description
EndInvoke ( ) : void

Waits until the asynchronous operation completes, and then returns.

SetAsCompleted ( Exception exception, bool completedSynchronously ) : void

Marks asynchronous operation as completed.

Méthodes protégées

Méthode Description
AsyncResult ( AsyncCallback asyncCallback, object state ) : System

Initializes a new instance of the AsyncResult class.

Method Details

AsyncResult() protected méthode

Initializes a new instance of the AsyncResult class.
protected AsyncResult ( AsyncCallback asyncCallback, object state ) : System
asyncCallback AsyncCallback The async callback.
state object The state.
Résultat System

EndInvoke() public méthode

Waits until the asynchronous operation completes, and then returns.
public EndInvoke ( ) : void
Résultat void

SetAsCompleted() public méthode

Marks asynchronous operation as completed.
public SetAsCompleted ( Exception exception, bool completedSynchronously ) : void
exception System.Exception The exception.
completedSynchronously bool if set to true [completed synchronously].
Résultat void