<PackageReference Include="SSH.NET" Version="2020.0.1" />

CommandAsyncResult

Provides additional information for asynchronous command execution
public object AsyncState { get; }

Gets a user-defined object that qualifies or contains information about an asynchronous operation.

public WaitHandle AsyncWaitHandle { get; }

Gets a WaitHandle that is used to wait for an asynchronous operation to complete.

public int BytesReceived { get; set; }

Gets or sets the bytes received. If SFTP only file bytes are counted.

public int BytesSent { get; set; }

Gets or sets the bytes sent by SFTP.

public bool CompletedSynchronously { get; }

Gets a value that indicates whether the asynchronous operation completed synchronously.

public bool IsCompleted { get; }

Gets a value that indicates whether the asynchronous operation has completed.