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