UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindTokenAsync Méthode

Définition

Recherchez un jeton utilisateur s’il existe.

protected:
 abstract System::Threading::Tasks::Task<TUserToken> ^ FindTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserToken> FindTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserToken?> FindTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
abstract member FindTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserToken (requires 'UserToken :> Microsoft.AspNetCore.Identity.IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))>
Protected MustOverride Function FindTokenAsync (user As TUser, loginProvider As String, name As String, cancellationToken As CancellationToken) As Task(Of TUserToken)

Paramètres

user
TUser

Propriétaire du jeton.

loginProvider
String

Fournisseur de connexion pour le jeton.

name
String

Nom du jeton.

cancellationToken
CancellationToken

CancellationToken utilisé pour propager les notifications indiquant que l’opération doit être annulée.

Retours

Task<TUserToken>

Jeton utilisateur s’il existe.

S’applique à