ITicketStore.StoreAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StoreAsync(AuthenticationTicket) |
存储标识票证并返回关联的密钥。 |
StoreAsync(AuthenticationTicket, CancellationToken) |
存储标识票证并返回关联的密钥。 |
StoreAsync(AuthenticationTicket, HttpContext, CancellationToken) |
存储标识票证并返回关联的密钥。 |
StoreAsync(AuthenticationTicket)
- Source:
- ITicketStore.cs
存储标识票证并返回关联的密钥。
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)
参数
- ticket
- AuthenticationTicket
要存储的标识信息。
返回
稍后可用于检索标识的密钥。
适用于
StoreAsync(AuthenticationTicket, CancellationToken)
- Source:
- ITicketStore.cs
存储标识票证并返回关联的密钥。
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)
参数
- ticket
- AuthenticationTicket
要存储的标识信息。
- cancellationToken
- CancellationToken
CancellationToken,用于传播应取消操作的通知。
返回
稍后可用于检索标识的密钥。
适用于
StoreAsync(AuthenticationTicket, HttpContext, CancellationToken)
- Source:
- ITicketStore.cs
存储标识票证并返回关联的密钥。
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)
参数
- ticket
- AuthenticationTicket
要存储的标识信息。
- httpContext
- HttpContext
与 HttpContext 当前请求关联的 。
- cancellationToken
- CancellationToken
CancellationToken,用于传播应取消操作的通知。
返回
稍后可用于检索标识的密钥。