mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-15 09:01:34 +00:00
2f42d5a31e
Minor fixes that was recenty broken earlier Apply some FxCop recomendation
42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
namespace Renci.SshNet.Common
|
|
{
|
|
/// <summary>
|
|
/// Provides data for <see cref="Renci.SshNet.Channels.Channel.DataReceived"/> event and <see cref="Renci.SshNet.Channels.Channel.ExtendedDataReceived"/> events.
|
|
/// </summary>
|
|
internal class ChannelDataEventArgs : ChannelEventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets channel data.
|
|
/// </summary>
|
|
public byte[] Data { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Gets the data type code.
|
|
/// </summary>
|
|
public uint DataTypeCode { 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)
|
|
{
|
|
this.Data = data;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ChannelDataEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="channelNumber">Channel number.</param>
|
|
/// <param name="data">Channel data.</param>
|
|
/// <param name="dataTypeCode">Channel data type code.</param>
|
|
public ChannelDataEventArgs(uint channelNumber, byte[] data, uint dataTypeCode)
|
|
: this(channelNumber, data)
|
|
{
|
|
this.DataTypeCode = dataTypeCode;
|
|
}
|
|
}
|
|
}
|