Class AsyncResult
Base class to encapsulates the results of an asynchronous operation.
public abstract class AsyncResult : IAsyncResult
- Inheritance
-
AsyncResult
- Implements
- Derived
- Inherited Members
Constructors
AsyncResult(AsyncCallback, object)
Initializes a new instance of the AsyncResult class.
protected AsyncResult(AsyncCallback asyncCallback, object state)
Parameters
asyncCallback
AsyncCallbackThe async callback.
state
objectThe state.
Properties
AsyncState
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
public object AsyncState { get; }
Property Value
- object
A user-defined object that qualifies or contains information about an asynchronous operation.
AsyncWaitHandle
Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
public WaitHandle AsyncWaitHandle { get; }
Property Value
- WaitHandle
A WaitHandle that is used to wait for an asynchronous operation to complete.
CompletedSynchronously
Gets a value indicating whether the asynchronous operation completed synchronously.
public bool CompletedSynchronously { get; }
Property Value
EndInvokeCalled
Gets a value indicating whether Renci.SshNet.Common.AsyncResult.EndInvoke has been called on the current AsyncResult.
public bool EndInvokeCalled { get; }
Property Value
- bool
true if Renci.SshNet.Common.AsyncResult.EndInvoke has been called on the current AsyncResult; otherwise, false.
IsCompleted
Gets a value indicating whether the asynchronous operation has completed.
public bool IsCompleted { get; }
Property Value
Methods
SetAsCompleted(Exception, bool)
Marks asynchronous operation as completed.
public void SetAsCompleted(Exception exception, bool completedSynchronously)