You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB
C#

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)
{
FilesRead = filesRead;
}
}
}