< Summary

Information
Class: Renci.SshNet.Sftp.SftpSynchronizeDirectoriesAsyncResult
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\SftpSynchronizeDirectoriesAsyncResult.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 38
Line coverage: 100%
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
get_FilesRead()100%1100%
.ctor(...)100%1100%
Update(...)100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.IO;
 4
 5using Renci.SshNet.Common;
 6
 7namespace Renci.SshNet.Sftp
 8{
 9    /// <summary>
 10    /// Encapsulates the results of an asynchronous directory synchronization operation.
 11    /// </summary>
 12    public class SftpSynchronizeDirectoriesAsyncResult : AsyncResult<IEnumerable<FileInfo>>
 13    {
 14        /// <summary>
 15        /// Gets the number of files read so far.
 16        /// </summary>
 117        public int FilesRead { get; private set; }
 18
 19        /// <summary>
 20        /// Initializes a new instance of the <see cref="SftpSynchronizeDirectoriesAsyncResult" /> class.
 21        /// </summary>
 22        /// <param name="asyncCallback">The async callback.</param>
 23        /// <param name="state">The state.</param>
 24        public SftpSynchronizeDirectoriesAsyncResult(AsyncCallback asyncCallback, object state)
 125            : base(asyncCallback, state)
 126        {
 127        }
 28
 29        /// <summary>
 30        /// Updates asynchronous operation status information.
 31        /// </summary>
 32        /// <param name="filesRead">The files read.</param>
 33        internal void Update(int filesRead)
 134        {
 135            FilesRead = filesRead;
 136        }
 37    }
 38}