ITicketStore 接口

定义

这提供了一种抽象存储机制,用于保留服务器上的标识信息,同时仅向客户端发送简单的标识符密钥。 这最常用于缓解将大型标识序列化为 Cookie 的问题。

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

方法

RemoveAsync(String)

删除与给定密钥关联的标识。

RemoveAsync(String, CancellationToken)

删除与给定密钥关联的标识。

RemoveAsync(String, HttpContext, CancellationToken)

删除与给定密钥关联的标识。

RenewAsync(String, AuthenticationTicket)

告知存储应更新给定标识。

RenewAsync(String, AuthenticationTicket, CancellationToken)

告知存储应更新给定标识。

RenewAsync(String, AuthenticationTicket, HttpContext, CancellationToken)

告知存储应更新给定标识。

RetrieveAsync(String)

从存储中检索给定密钥的标识。

RetrieveAsync(String, CancellationToken)

从存储中检索给定密钥的标识。

RetrieveAsync(String, HttpContext, CancellationToken)

从存储中检索给定密钥的标识。

StoreAsync(AuthenticationTicket)

存储标识票证并返回关联的密钥。

StoreAsync(AuthenticationTicket, CancellationToken)

存储标识票证并返回关联的密钥。

StoreAsync(AuthenticationTicket, HttpContext, CancellationToken)

存储标识票证并返回关联的密钥。

适用于