ITicketStore.RetrieveAsync Metoda

Definice

Přetížení

RetrieveAsync(String)

Načte identitu z úložiště pro daný klíč.

RetrieveAsync(String, CancellationToken)

Načte identitu z úložiště pro daný klíč.

RetrieveAsync(String)

Načte identitu z úložiště pro daný klíč.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ RetrieveAsync(System::String ^ key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> RetrieveAsync (string key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key);
abstract member RetrieveAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Function RetrieveAsync (key As String) As Task(Of AuthenticationTicket)

Parametry

key
String

Klíč přidružený k identitě.

Návraty

Task<AuthenticationTicket>

Identita přidružená k danému klíči nebo null , pokud nebyla nalezena.

Platí pro

RetrieveAsync(String, CancellationToken)

Načte identitu z úložiště pro daný klíč.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Overridable Function RetrieveAsync (key As String, cancellationToken As CancellationToken) As Task(Of AuthenticationTicket)

Parametry

key
String

Klíč přidružený k identitě.

cancellationToken
CancellationToken

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

Návraty

Task<AuthenticationTicket>

Identita přidružená k danému klíči nebo null , pokud nebyla nalezena.

Platí pro