< Summary

Information
Class: Renci.SshNet.Common.ChannelOpenFailedEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\ChannelOpenFailedEventArgs.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 38
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%10%
get_ReasonCode()100%10%
get_Description()100%10%
get_Language()100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\ChannelOpenFailedEventArgs.cs

#LineLine coverage
 1namespace 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)
 016            : base(channelNumber)
 017        {
 018            ReasonCode = reasonCode;
 019            Description = description;
 020            Language = language;
 021        }
 22
 23        /// <summary>
 24        /// Gets failure reason code.
 25        /// </summary>
 026        public uint ReasonCode { get; }
 27
 28        /// <summary>
 29        /// Gets failure description.
 30        /// </summary>
 031        public string Description { get; }
 32
 33        /// <summary>
 34        /// Gets failure language.
 35        /// </summary>
 036        public string Language { get; }
 37    }
 38}