Parcourir la source

Fix API break on KeyExchange (#1609)

This type is public and a `private protected` ctor breaks subclassing outside the assembly
Rob Hague il y a 7 mois
Parent
commit
bb3beeb6c5
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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());
         }