瀏覽代碼

Modify TryAuthenticate to static.

drieseng 9 年之前
父節點
當前提交
7e2836a7a7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Renci.SshNet/ClientAuthentication.cs

+ 4 - 4
src/Renci.SshNet/ClientAuthentication.cs

@@ -46,10 +46,10 @@ namespace Renci.SshNet
 
         }
 
-        private bool TryAuthenticate(ISession session,
-                                     AuthenticationState authenticationState,
-                                     ICollection<string> allowedAuthenticationMethods,
-                                     ref SshAuthenticationException authenticationException)
+        private static bool TryAuthenticate(ISession session,
+                                            AuthenticationState authenticationState,
+                                            ICollection<string> allowedAuthenticationMethods,
+                                            ref SshAuthenticationException authenticationException)
         {
             if (allowedAuthenticationMethods.Count == 0)
             {