ITicketStore.RetrieveAsync Method

Definition

Overloads

RetrieveAsync(String)

Retrieves an identity from the store for the given key.

RetrieveAsync(String, CancellationToken)

Retrieves an identity from the store for the given key.

RetrieveAsync(String)

Retrieves an identity from the store for the given key.

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)

Parameters

key
String

The key associated with the identity.

Returns

Task<AuthenticationTicket>

The identity associated with the given key, or null if not found.

Applies to

RetrieveAsync(String, CancellationToken)

Retrieves an identity from the store for the given key.

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)

Parameters

key
String

The key associated with the identity.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

Task<AuthenticationTicket>

The identity associated with the given key, or null if not found.

Applies to