< 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

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor()100%1100%
get_BytesReceived()100%1100%
get_BytesSent()100%1100%
get_AsyncState()100%1100%
get_AsyncWaitHandle()100%1100%
get_CompletedSynchronously()100%10%
get_IsCompleted()100%1100%
get_EndCalled()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Threading;
 3
 4namespace 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>
 79114        internal CommandAsyncResult()
 79115        {
 79116        }
 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>
 74822        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>
 628        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
 78534        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>
 228442        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>
 050        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>
 451958        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>
 151068        internal bool EndCalled { get; set; }
 69    }
 70}