| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.IO; |
| | | 4 | | |
| | | 5 | | using Renci.SshNet.Common; |
| | | 6 | | |
| | | 7 | | namespace 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> |
| | 1 | 17 | | 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) |
| | 1 | 25 | | : base(asyncCallback, state) |
| | 1 | 26 | | { |
| | 1 | 27 | | } |
| | | 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) |
| | 1 | 34 | | { |
| | 1 | 35 | | FilesRead = filesRead; |
| | 1 | 36 | | } |
| | | 37 | | } |
| | | 38 | | } |