소스 검색

Added Async suffix

LukePulverenti Luke Pulverenti luke pulverenti 13 년 전
부모
커밋
75b015c864
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 4
      MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs
  2. 1 1
      MediaBrowser.ApiInteraction/ApiClient.cs

+ 2 - 4
MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs

@@ -17,12 +17,10 @@ namespace MediaBrowser.Api.HttpHandlers
 
             string password = await GetFormValue("password").ConfigureAwait(false);
 
-            AuthenticationResult result = new AuthenticationResult()
+            return new AuthenticationResult()
             {
                 Success = true
-            };
-
-            return result;
+            }; 
         }
     }
 }

+ 1 - 1
MediaBrowser.ApiInteraction/ApiClient.cs

@@ -652,7 +652,7 @@ namespace MediaBrowser.ApiInteraction
         /// <summary>
         /// Authenticates a user and returns the result
         /// </summary>
-        public async Task<AuthenticationResult> AuthenticateUser(Guid userId, string password)
+        public async Task<AuthenticationResult> AuthenticateUserAsync(Guid userId, string password)
         {
             string url = ApiUrl + "/UserAuthentication?dataformat=" + SerializationFormat.ToString();