UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.FindUserLoginAsync Metoda

Definice

Přetížení

FindUserLoginAsync(String, String, CancellationToken)

Pokud existuje, vraťte přihlášení uživatele s poskytovatelem, providerKey.

FindUserLoginAsync(TKey, String, String, CancellationToken)

Pokud existuje, vraťte přihlášení uživatele pomocí odpovídajícího id uživatele, zprostředkovatele, providerKey.

FindUserLoginAsync(String, String, CancellationToken)

Pokud existuje, vraťte přihlášení uživatele s poskytovatelem, providerKey.

protected:
 override System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>
Protected Overrides Function FindUserLoginAsync (loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUserLogin)

Parametry

loginProvider
String

Název zprostředkovatele přihlášení.

providerKey
String

Klíč poskytnutý uživatelem loginProvider .

cancellationToken
CancellationToken

Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.

Návraty

Task<TUserLogin>

Uživatel se přihlásí, pokud existuje.

Platí pro

FindUserLoginAsync(TKey, String, String, CancellationToken)

Pokud existuje, vraťte přihlášení uživatele pomocí odpovídajícího id uživatele, zprostředkovatele, providerKey.

protected:
 override System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(TKey userId, System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : 'Key * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>
Protected Overrides Function FindUserLoginAsync (userId As TKey, loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUserLogin)

Parametry

userId
TKey

ID uživatele.

loginProvider
String

Název zprostředkovatele přihlášení.

providerKey
String

Klíč poskytnutý uživatelem loginProvider .

cancellationToken
CancellationToken

Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.

Návraty

Task<TUserLogin>

Uživatel se přihlásí, pokud existuje.

Platí pro