ITicketStore.RetrieveAsync 方法

定义

重载

RetrieveAsync(String)

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

RetrieveAsync(String, CancellationToken)

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

RetrieveAsync(String, HttpContext, CancellationToken)

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

RetrieveAsync(String)

Source:
ITicketStore.cs

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

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ RetrieveAsync(System::String ^ key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> RetrieveAsync (string key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key);
abstract member RetrieveAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Function RetrieveAsync (key As String) As Task(Of AuthenticationTicket)

参数

key
String

与标识关联的密钥。

返回

与给定密钥关联的标识,如果未找到, null 则为 。

适用于

RetrieveAsync(String, CancellationToken)

Source:
ITicketStore.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Overridable Function RetrieveAsync (key As String, cancellationToken As CancellationToken) As Task(Of AuthenticationTicket)

参数

key
String

与标识关联的密钥。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

与给定密钥关联的标识,如果未找到, null 则为 。

适用于

RetrieveAsync(String, HttpContext, CancellationToken)

Source:
ITicketStore.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.RetrieveAsync : string * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Overridable Function RetrieveAsync (key As String, httpContext As HttpContext, cancellationToken As CancellationToken) As Task(Of AuthenticationTicket)

参数

key
String

与标识关联的密钥。

httpContext
HttpContext

HttpContext与当前请求关联的 。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

与给定密钥关联的标识,如果未找到, null 则为 。

适用于