ChannelDataEventArgs.cs 783 B

123456789101112131415161718192021222324
  1. namespace Renci.SshNet.Common
  2. {
  3. /// <summary>
  4. /// Provides data for <see cref="Renci.SshNet.Channels.Channel.DataReceived"/> event.
  5. /// </summary>
  6. internal class ChannelDataEventArgs : ChannelEventArgs
  7. {
  8. /// <summary>
  9. /// Gets channel data.
  10. /// </summary>
  11. public byte[] Data { get; private set; }
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="ChannelDataEventArgs"/> class.
  14. /// </summary>
  15. /// <param name="channelNumber">Channel number.</param>
  16. /// <param name="data">Channel data.</param>
  17. public ChannelDataEventArgs(uint channelNumber, byte[] data)
  18. : base(channelNumber)
  19. {
  20. Data = data;
  21. }
  22. }
  23. }