using System; using System.Collections.Generic; using Renci.SshNet.Common; namespace Renci.SshNet.Sftp { /// /// Encapsulates the results of an asynchronous directory list operation. /// public class SftpListDirectoryAsyncResult : AsyncResult> { /// /// Gets the number of files read so far. /// public int FilesRead { get; private set; } /// /// Initializes a new instance of the class. /// /// The async callback. /// The state. public SftpListDirectoryAsyncResult(AsyncCallback asyncCallback, object state) : base(asyncCallback, state) { } /// /// Updates asynchronous operation status information. /// /// The files read. internal void Update(int filesRead) { FilesRead = filesRead; } } }