UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.GetUsersForClaimAsync(Claim, CancellationToken) UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.GetUsersForClaimAsync(Claim, CancellationToken) Method

Definition

Retrieves all users with the specified claim.

public override System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = null);
override this.GetUsersForClaimAsync : System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>

Parameters

claim
Claim Claim

The claim whose users should be retrieved.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

Task<IList<TUser>>

The Task contains a list of users, if any, that contain the specified claim.

Implements

Applies to