Table of Contents

Class AsyncResult<TResult>

Namespace
Renci.SshNet.Common
Assembly
Renci.SshNet.dll

Base class to encapsulates the results of an asynchronous operation that returns result.

public abstract class AsyncResult<TResult> : AsyncResult, IAsyncResult

Type Parameters

TResult

The type of the result.

Inheritance

Implements

Inherited Members

Constructors

AsyncResult(AsyncCallback, object)

Initializes a new instance of the Renci.SshNet.Common.AsyncResult`1 class.

protected AsyncResult(AsyncCallback asyncCallback, object state)

Parameters

asyncCallback AsyncCallback

The async callback.

state object

The state.

Methods

EndInvoke()

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

public TResult EndInvoke()

Returns

TResult

The invocation result.

SetAsCompleted(TResult, bool)

Marks asynchronous operation as completed.

public void SetAsCompleted(TResult result, bool completedSynchronously)

Parameters

result TResult

The result.

completedSynchronously bool

if set to true [completed synchronously].