語言

ITicketStore 介面

定義

這提供了一種抽象的儲存機制,可以在伺服器上保留身份資訊,同時只傳送簡單的識別金鑰給用戶端。 這通常用來減輕將大型身份序列化成 Cookie 的問題。

public interface class ITicketStore
public interface ITicketStore
type ITicketStore = interface
Public Interface ITicketStore

方法

名稱 Description
RemoveAsync(String, CancellationToken)

移除與該金鑰相關的身份。

RemoveAsync(String, HttpContext, CancellationToken)

移除與該金鑰相關的身份。

RemoveAsync(String)

移除與該金鑰相關的身份。

RenewAsync(String, AuthenticationTicket, CancellationToken)

告訴商店該身份應該更新。

RenewAsync(String, AuthenticationTicket, HttpContext, CancellationToken)

告訴商店該身份應該更新。

RenewAsync(String, AuthenticationTicket)

告訴商店該身份應該更新。

RetrieveAsync(String, CancellationToken)

從儲存庫取得該金鑰的身份。

RetrieveAsync(String, HttpContext, CancellationToken)

從儲存庫取得該金鑰的身份。

RetrieveAsync(String)

從儲存庫取得該金鑰的身份。

StoreAsync(AuthenticationTicket, CancellationToken)

儲存身份工單並回傳相關金鑰。

StoreAsync(AuthenticationTicket, HttpContext, CancellationToken)

儲存身份工單並回傳相關金鑰。

StoreAsync(AuthenticationTicket)

儲存身份工單並回傳相關金鑰。

適用於