ChannelEventArgs.cs 680 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Renci.SshNet.Common
  3. {
  4. /// <summary>
  5. /// Base class for all channel related events.
  6. /// </summary>
  7. internal class ChannelEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Gets the channel number.
  11. /// </summary>
  12. public uint ChannelNumber { get; private set; }
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="ChannelEventArgs"/> class.
  15. /// </summary>
  16. /// <param name="channelNumber">The channel number.</param>
  17. public ChannelEventArgs(uint channelNumber)
  18. {
  19. this.ChannelNumber = channelNumber;
  20. }
  21. }
  22. }