共用方式為


ITicketStore.StoreAsync 方法

定義

多載

StoreAsync(AuthenticationTicket)

儲存身分識別票證並傳回相關聯的金鑰。

StoreAsync(AuthenticationTicket, CancellationToken)

儲存身分識別票證並傳回相關聯的金鑰。

StoreAsync(AuthenticationTicket, HttpContext, CancellationToken)

儲存身分識別票證並傳回相關聯的金鑰。

StoreAsync(AuthenticationTicket)

來源:
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)

來源:
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)

來源:
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

傳回

稍後可用來擷取身分識別的金鑰。

適用於