Share via


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

Definizione

Imposta il valore del token per un determinato utente.

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

Parametri

user
TUser

Utente.

loginProvider
String

Provider di autenticazione per il token.

name
String

Nome del token.

value
String

Valore 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