Sdílet prostřednictvím


IUserLoginStore<TUser>.FindByLoginAsync Metoda

Definice

Načte uživatele přidruženého k zadanému zprostředkovateli přihlášení a klíči zprostředkovatele přihlášení.

public:
 System::Threading::Tasks::Task<TUser> ^ FindByLoginAsync(System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TUser> FindByLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TUser?> FindByLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
abstract member FindByLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Function FindByLoginAsync (loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUser)

Parametry

loginProvider
String

Poskytovatel přihlášení, který poskytl providerKey.

providerKey
String

Klíč poskytnutý nástrojem pro loginProvider identifikaci uživatele.

cancellationToken
CancellationToken

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

Návraty

Task<TUser>

Pro Task asynchronní operaci obsahující uživatele, pokud nějaký odpovídá zadanému zprostředkovateli přihlášení a klíči.

Platí pro