Share via


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetTokenAsync Metodo

Definizione

Restituisce il valore del token.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
abstract member GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetTokenAsync (user As TUser, loginProvider As String, name As String, cancellationToken As CancellationToken) As Task(Of String)

Parametri

user
TUser

Utente.

loginProvider
String

Provider di autenticazione per il token.

name
String

Nome del token.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona.

Implementazioni

Si applica a