ITicketStore.StoreAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StoreAsync(AuthenticationTicket) |
儲存身分識別票證並傳回相關聯的金鑰。 |
StoreAsync(AuthenticationTicket, CancellationToken) |
儲存身分識別票證並傳回相關聯的金鑰。 |
StoreAsync(AuthenticationTicket, HttpContext, CancellationToken) |
儲存身分識別票證並傳回相關聯的金鑰。 |
StoreAsync(AuthenticationTicket)
儲存身分識別票證並傳回相關聯的金鑰。
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)
儲存身分識別票證並傳回相關聯的金鑰。
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)
儲存身分識別票證並傳回相關聯的金鑰。
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。
傳回
稍後可用來擷取身分識別的金鑰。