<PackageReference Include="SSH.NET" Version="2016.0.0-beta2" />

AsyncResult<TResult>

public abstract class AsyncResult<TResult> : AsyncResult
Base class to encapsulates the results of an asynchronous operation that returns result.
protected AsyncResult(AsyncCallback asyncCallback, object state)

Initializes a new instance of the AsyncResult<T> class.

public TResult EndInvoke()

Waits until the asynchronous operation completes, and then returns the value generated by the asynchronous operation.

public void SetAsCompleted(TResult result, bool completedSynchronously)

Marks asynchronous operation as completed.