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