ChannelOpenFailedEventArgs.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Renci.SshNet.Common
  2. {
  3. /// <summary>
  4. /// Provides data for <see cref="Renci.SshNet.Channels.ClientChannel.OpenFailed"/> event.
  5. /// </summary>
  6. internal class ChannelOpenFailedEventArgs : ChannelEventArgs
  7. {
  8. /// <summary>
  9. /// Gets failure reason code.
  10. /// </summary>
  11. public uint ReasonCode { get; private set; }
  12. /// <summary>
  13. /// Gets failure description.
  14. /// </summary>
  15. public string Description { get; private set; }
  16. /// <summary>
  17. /// Gets failure language.
  18. /// </summary>
  19. public string Language { get; private set; }
  20. /// <summary>
  21. /// Initializes a new instance of the <see cref="ChannelOpenFailedEventArgs"/> class.
  22. /// </summary>
  23. /// <param name="channelNumber">Channel number.</param>
  24. /// <param name="reasonCode">Failure reason code.</param>
  25. /// <param name="description">Failure description.</param>
  26. /// <param name="language">Failure language.</param>
  27. public ChannelOpenFailedEventArgs(uint channelNumber, uint reasonCode, string description, string language)
  28. : base(channelNumber)
  29. {
  30. this.ReasonCode = reasonCode;
  31. this.Description = description;
  32. this.Language = language;
  33. }
  34. }
  35. }