ITicketStore.StoreAsync Method

Definition

Overloads

StoreAsync(AuthenticationTicket)

Store the identity ticket and return the associated key.

StoreAsync(AuthenticationTicket, CancellationToken)

Store the identity ticket and return the associated key.

StoreAsync(AuthenticationTicket)

Store the identity ticket and return the associated key.

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

Parameters

ticket
AuthenticationTicket

The identity information to store.

Returns

Task<String>

The key that can be used to retrieve the identity later.

Applies to

StoreAsync(AuthenticationTicket, CancellationToken)

Store the identity ticket and return the associated key.

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

Parameters

ticket
AuthenticationTicket

The identity information to store.

cancellationToken
CancellationToken

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

Returns

Task<String>

The key that can be used to retrieve the identity later.

Applies to