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, HttpContext, 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

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

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

Návraty

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

Platí pro

RetrieveAsync(String, HttpContext, CancellationToken)

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

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

Parametry

key
String

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

httpContext
HttpContext

Přidružený HttpContext k aktuálnímu požadavku.

cancellationToken
CancellationToken

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

Návraty

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

Platí pro