UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserAsync Method

Definition

Return a user with the matching userId if it exists.

C#
protected abstract System.Threading.Tasks.Task<TUser> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);
C#
protected abstract System.Threading.Tasks.Task<TUser?> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);

Parameters

userId
TKey

The user's id.

cancellationToken
CancellationToken

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

Returns

Task<TUser>

The user if it exists.

Applies to

Produk Versi
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0