فهرست منبع

Fix API break on KeyExchange (#1609)

This type is public and a `private protected` ctor breaks subclassing outside the assembly
Rob Hague 7 ماه پیش
والد
کامیت
bb3beeb6c5
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      src/Renci.SshNet/Security/KeyExchange.cs

+ 4 - 1
src/Renci.SshNet/Security/KeyExchange.cs

@@ -63,7 +63,10 @@ namespace Renci.SshNet.Security
         /// </summary>
         public event EventHandler<HostKeyEventArgs> HostKeyReceived;
 
-        private protected KeyExchange()
+        /// <summary>
+        /// Initializes a new instance of the <see cref="KeyExchange"/> class.
+        /// </summary>
+        protected KeyExchange()
         {
             _logger = SshNetLoggingConfiguration.LoggerFactory.CreateLogger(GetType());
         }