HandleRequestContext<TOptions> 類別

定義

用於處理驗證要求的基底內容類型。

generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionspublic ref class HandleRequestContext : Microsoft::AspNetCore::Authentication::BaseContext<TOptions>
public class HandleRequestContext<TOptions> : Microsoft.AspNetCore.Authentication.BaseContext<TOptions> where TOptions : AuthenticationSchemeOptions
type HandleRequestContext<'Options (requires 'Options :> AuthenticationSchemeOptions)> = class
    inherit BaseContext<'Options (requires 'Options :> AuthenticationSchemeOptions)>
Public Class HandleRequestContext(Of TOptions)
Inherits BaseContext(Of TOptions)

類型參數

TOptions
繼承
HandleRequestContext<TOptions>
衍生

建構函式

HandleRequestContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

初始化 HandleRequestContext<TOptions> 的新執行個體。

屬性

HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

取得與配置相關聯的驗證選項。

(繼承來源 BaseContext<TOptions>)
Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Result

HandleRequestResult處理常式所使用的 。

Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)

方法

HandleResponse()

中斷此要求的所有處理並返回用戶端。 呼叫端負責產生完整回應。

SkipHandler()

停止處理目前處理常式中的要求。

適用於