< Summary

Information
Class: Renci.SshNet.Common.AuthenticationBannerEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationBannerEventArgs.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 31
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
get_BannerMessage()100%10%
get_Language()100%10%
.ctor(...)100%10%

File(s)

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

#LineLine coverage
 1namespace Renci.SshNet.Common
 2{
 3    /// <summary>
 4    /// Provides data for <see cref="ConnectionInfo.AuthenticationBanner"/> event.
 5    /// </summary>
 6    public class AuthenticationBannerEventArgs : AuthenticationEventArgs
 7    {
 8        /// <summary>
 9        /// Gets banner message.
 10        /// </summary>
 011        public string BannerMessage { get; private set; }
 12
 13        /// <summary>
 14        /// Gets banner language.
 15        /// </summary>
 016        public string Language { get; private set; }
 17
 18        /// <summary>
 19        /// Initializes a new instance of the <see cref="AuthenticationBannerEventArgs"/> class.
 20        /// </summary>
 21        /// <param name="username">The username.</param>
 22        /// <param name="message">Banner message.</param>
 23        /// <param name="language">Banner language.</param>
 24        public AuthenticationBannerEventArgs(string username, string message, string language)
 025            : base(username)
 026        {
 027            BannerMessage = message;
 028            Language = language;
 029        }
 30    }
 31}