Fix doc comments

This commit is contained in:
Hao Kung 2015-11-13 14:09:15 -08:00
parent c907762882
commit 2084a95f0a
1 changed files with 15 additions and 7 deletions

View File

@ -1622,7 +1622,7 @@ namespace Microsoft.AspNet.Identity
Resources.NoTokenProvider, tokenProvider)); Resources.NoTokenProvider, tokenProvider));
} }
// Make sure the token is valid // Make sure the token is valid
var result = await _tokenProviders[tokenProvider].ValidateAsync("TwoFactor", token, this, user); var result = await _tokenProviders[tokenProvider].ValidateAsync("TwoFactor", token, this, user);
if (!result) if (!result)
{ {
@ -1862,7 +1862,7 @@ namespace Microsoft.AspNet.Identity
/// </summary> /// </summary>
/// <param name="user">The user whose access failed count should be retrieved for.</param> /// <param name="user">The user whose access failed count should be retrieved for.</param>
/// <returns>The <see cref="Task"/> that contains the result the asynchronous operation, the current failed access count /// <returns>The <see cref="Task"/> that contains the result the asynchronous operation, the current failed access count
/// for the user..</returns> /// for the user.</returns>
public virtual async Task<int> GetAccessFailedCountAsync(TUser user) public virtual async Task<int> GetAccessFailedCountAsync(TUser user)
{ {
ThrowIfDisposed(); ThrowIfDisposed();
@ -1874,6 +1874,14 @@ namespace Microsoft.AspNet.Identity
return await store.GetAccessFailedCountAsync(user, CancellationToken); return await store.GetAccessFailedCountAsync(user, CancellationToken);
} }
/// <summary>
/// Returns a list of users from the user store who have the specified <paramref name="claim"/>.
/// </summary>
/// <param name="claim">The claim to look for.</param>
/// <returns>
/// A <see cref="Task{TResult}"/> that represents the result of the asynchronous query, a list of <typeparamref name="TUser"/>s who
/// have the specified claim.
/// </returns>
public virtual Task<IList<TUser>> GetUsersForClaimAsync(Claim claim) public virtual Task<IList<TUser>> GetUsersForClaimAsync(Claim claim)
{ {
ThrowIfDisposed(); ThrowIfDisposed();
@ -1886,12 +1894,12 @@ namespace Microsoft.AspNet.Identity
} }
/// <summary> /// <summary>
/// Returns a list of users from the user store who have the specified <see cref="Claim"/>. /// Returns a list of users from the user store who are members of the specified <paramref name="roleName"/>.
/// </summary> /// </summary>
/// <param name="claim">The claim to look for.</param> /// <param name="roleName">The name of the role whose users should be returned.</param>
/// <returns> /// <returns>
/// A <see cref="Task{TResult}"/> that represents the result of the asynchronous query, a list of <typeparamref name="TUser"/>s who /// A <see cref="Task{TResult}"/> that represents the result of the asynchronous query, a list of <typeparamref name="TUser"/>s who
/// have the specified claim. /// are members of the specified role.
/// </returns> /// </returns>
public virtual Task<IList<TUser>> GetUsersInRoleAsync(string roleName) public virtual Task<IList<TUser>> GetUsersInRoleAsync(string roleName)
{ {