ITicketStore.StoreAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, HttpContext, CancellationToken) |
Store the identity ticket and return the associated key. |
StoreAsync(AuthenticationTicket)
- Source:
- ITicketStore.cs
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
The key that can be used to retrieve the identity later.
Applies to
StoreAsync(AuthenticationTicket, CancellationToken)
- Source:
- ITicketStore.cs
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
The key that can be used to retrieve the identity later.
Applies to
StoreAsync(AuthenticationTicket, HttpContext, CancellationToken)
- Source:
- ITicketStore.cs
Store the identity ticket and return the associated key.
public virtual System.Threading.Tasks.Task<string> StoreAsync (Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken);
abstract member StoreAsync : Microsoft.AspNetCore.Authentication.AuthenticationTicket * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.StoreAsync : Microsoft.AspNetCore.Authentication.AuthenticationTicket * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function StoreAsync (ticket As AuthenticationTicket, httpContext As HttpContext, cancellationToken As CancellationToken) As Task(Of String)
Parameters
- ticket
- AuthenticationTicket
The identity information to store.
- httpContext
- HttpContext
The HttpContext associated with the current request.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
The key that can be used to retrieve the identity later.