C# Class Renci.SshNet.Common.AsyncResult

Base class to encapsulates the results of an asynchronous operation.
Inheritance: IAsyncResult
显示文件 Open project: sshnet/SSH.NET

Public Methods

Method Description
EndInvoke ( ) : void

Waits until the asynchronous operation completes, and then returns.

SetAsCompleted ( Exception exception, bool completedSynchronously ) : void

Marks asynchronous operation as completed.

Protected Methods

Method Description
AsyncResult ( AsyncCallback asyncCallback, object state ) : System

Initializes a new instance of the AsyncResult class.

Method Details

AsyncResult() protected method

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

EndInvoke() public method

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

SetAsCompleted() public method

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].
return void