From 8672bd7797c819b94970628e70fd073b4dfdb043 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Tue, 4 Nov 2014 12:17:27 -0800 Subject: [PATCH] Rename parameter of IUserStore.SetNormalizedUserNameAsync method Fixes https://github.com/aspnet/Identity/issues/244 --- src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs | 4 ++-- src/Microsoft.AspNet.Identity/IUserStore.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs index f224eb7df8..a4ff3efd45 100644 --- a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs +++ b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs @@ -126,7 +126,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework return Task.FromResult(user.NormalizedUserName); } - public Task SetNormalizedUserNameAsync(TUser user, string userName, CancellationToken cancellationToken = default(CancellationToken)) + public Task SetNormalizedUserNameAsync(TUser user, string normalizedName, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); ThrowIfDisposed(); @@ -134,7 +134,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework { throw new ArgumentNullException("user"); } - user.NormalizedUserName = userName; + user.NormalizedUserName = normalizedName; return Task.FromResult(0); } diff --git a/src/Microsoft.AspNet.Identity/IUserStore.cs b/src/Microsoft.AspNet.Identity/IUserStore.cs index bf27aec52f..93a8fcae36 100644 --- a/src/Microsoft.AspNet.Identity/IUserStore.cs +++ b/src/Microsoft.AspNet.Identity/IUserStore.cs @@ -51,10 +51,10 @@ namespace Microsoft.AspNet.Identity /// Set the normalized user name /// /// - /// + /// /// /// - Task SetNormalizedUserNameAsync(TUser user, string userName, + Task SetNormalizedUserNameAsync(TUser user, string normalizedName, CancellationToken cancellationToken = default(CancellationToken)); ///