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.

25 lines
759 B
C#

9 months ago
namespace Renci.SshNet.Common
{
/// <summary>
/// Provides data for <see cref="Renci.SshNet.Channels.Channel.DataReceived"/> event.
/// </summary>
internal class ChannelDataEventArgs : ChannelEventArgs
{
/// <summary>
/// Gets channel data.
/// </summary>
public byte[] Data { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ChannelDataEventArgs"/> class.
/// </summary>
/// <param name="channelNumber">Channel number.</param>
/// <param name="data">Channel data.</param>
public ChannelDataEventArgs(uint channelNumber, byte[] data)
: base(channelNumber)
{
Data = data;
}
}
}