# < Summary

Information

Class: | Renci.SshNet.CommandAsyncResult
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\CommandAsyncResult.cs

Line coverage
90%

Covered lines: | 9
Uncovered lines: | 1
Coverable lines: | 10
Total lines: | 70
Line coverage: | 90%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
.ctor() | 100% | 1 | 100%
get_BytesReceived() | 100% | 1 | 100%
get_BytesSent() | 100% | 1 | 100%
get_AsyncState() | 100% | 1 | 100%
get_AsyncWaitHandle() | 100% | 1 | 100%
get_CompletedSynchronously() | 100% | 1 | 0%
get_IsCompleted() | 100% | 1 | 100%
get_EndCalled() | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\CommandAsyncResult.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using System.Threading;`
|  | `3` |  | ``
|  | `4` |  | `namespace Renci.SshNet`
|  | `5` |  | `{`
|  | `6` |  | `/// <summary>`
|  | `7` |  | `/// Provides additional information for asynchronous command execution.`
|  | `8` |  | `/// </summary>`
|  | `9` |  | `public class CommandAsyncResult : IAsyncResult`
|  | `10` |  | `{`
|  | `11` |  | `/// <summary>`
|  | `12` |  | `/// Initializes a new instance of the <see cref="CommandAsyncResult"/> class.`
|  | `13` |  | `/// </summary>`
| 791 | `14` |  | `internal CommandAsyncResult()`
| 791 | `15` |  | `{`
| 791 | `16` |  | `}`
|  | `17` |  | ``
|  | `18` |  | `/// <summary>`
|  | `19` |  | `/// Gets or sets the bytes received. If SFTP only file bytes are counted.`
|  | `20` |  | `/// </summary>`
|  | `21` |  | `/// <value>Total bytes received.</value>`
| 748 | `22` |  | `public int BytesReceived { get; set; }`
|  | `23` |  | ``
|  | `24` |  | `/// <summary>`
|  | `25` |  | `/// Gets or sets the bytes sent by SFTP.`
|  | `26` |  | `/// </summary>`
|  | `27` |  | `/// <value>Total bytes sent.</value>`
| 6 | `28` |  | `public int BytesSent { get; set; }`
|  | `29` |  | ``
|  | `30` |  | `/// <summary>`
|  | `31` |  | `/// Gets a user-defined object that qualifies or contains information about an asynchronous operation.`
|  | `32` |  | `/// </summary>`
|  | `33` |  | `/// <returns>A user-defined object that qualifies or contains information about an asynchronous operation.</retu`
| 785 | `34` |  | `public object AsyncState { get; internal set; }`
|  | `35` |  | ``
|  | `36` |  | `/// <summary>`
|  | `37` |  | `/// Gets a <see cref="WaitHandle"/> that is used to wait for an asynchronous operation to complete.`
|  | `38` |  | `/// </summary>`
|  | `39` |  | `/// <returns>`
|  | `40` |  | `/// A <see cref="WaitHandle"/> that is used to wait for an asynchronous operation to complete.`
|  | `41` |  | `/// </returns>`
| 2284 | `42` |  | `public WaitHandle AsyncWaitHandle { get; internal set; }`
|  | `43` |  | ``
|  | `44` |  | `/// <summary>`
|  | `45` |  | `/// Gets a value indicating whether the asynchronous operation completed synchronously.`
|  | `46` |  | `/// </summary>`
|  | `47` |  | `/// <returns>`
|  | `48` |  | `/// true if the asynchronous operation completed synchronously; otherwise, false.`
|  | `49` |  | `/// </returns>`
| 0 | `50` |  | `public bool CompletedSynchronously { get; internal set; }`
|  | `51` |  | ``
|  | `52` |  | `/// <summary>`
|  | `53` |  | `/// Gets a value indicating whether the asynchronous operation has completed.`
|  | `54` |  | `/// </summary>`
|  | `55` |  | `/// <returns>`
|  | `56` |  | `/// true if the operation is complete; otherwise, false.`
|  | `57` |  | `/// </returns>`
| 4519 | `58` |  | `public bool IsCompleted { get; internal set; }`
|  | `59` |  | ``
|  | `60` |  | `/// <summary>`
|  | `61` |  | `/// Gets or sets a value indicating whether <see cref="SshCommand.EndExecute(IAsyncResult)"/> was already called`
|  | `62` |  | `/// <see cref="CommandAsyncResult"/>.`
|  | `63` |  | `/// </summary>`
|  | `64` |  | `/// <returns>`
|  | `65` |  | `/// <see langword="true"/> if <see cref="SshCommand.EndExecute(IAsyncResult)"/> was already called for this <see`
|  | `66` |  | `/// otherwise, <see langword="false"/>.`
|  | `67` |  | `/// </returns>`
| 1510 | `68` |  | `internal bool EndCalled { get; set; }`
|  | `69` |  | `}`
|  | `70` |  | `}`

# Methods/Properties

.ctor()
get_BytesReceived()
get_BytesSent()
get_AsyncState()
get_AsyncWaitHandle()
get_CompletedSynchronously()
get_IsCompleted()
get_EndCalled()