소스 검색

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());
         }