Rename parameter of IUserStore.SetNormalizedUserNameAsync method

Fixes https://github.com/aspnet/Identity/issues/244
This commit is contained in:
Hao Kung 2014-11-04 12:17:27 -08:00
parent d7f711bca1
commit 8672bd7797
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -51,10 +51,10 @@ namespace Microsoft.AspNet.Identity
/// Set the normalized user name
/// </summary>
/// <param name="user"></param>
/// <param name="userName"></param>
/// <param name="normalizedName"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task SetNormalizedUserNameAsync(TUser user, string userName,
Task SetNormalizedUserNameAsync(TUser user, string normalizedName,
CancellationToken cancellationToken = default(CancellationToken));
/// <summary>