Share via


RemoteFailureContext 类

定义

向处理程序提供程序提供失败上下文信息。

public ref class RemoteFailureContext : Microsoft::AspNetCore::Authentication::HandleRequestContext<Microsoft::AspNetCore::Authentication::RemoteAuthenticationOptions ^>
public class RemoteFailureContext : Microsoft.AspNetCore.Authentication.HandleRequestContext<Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions>
type RemoteFailureContext = class
    inherit HandleRequestContext<RemoteAuthenticationOptions>
Public Class RemoteFailureContext
Inherits HandleRequestContext(Of RemoteAuthenticationOptions)
继承

构造函数

RemoteFailureContext(HttpContext, AuthenticationScheme, RemoteAuthenticationOptions, Exception)

初始化 RemoteFailureContext 的新实例。

属性

Failure

错误的用户友好错误消息。

HttpContext

上下文。

(继承自 BaseContext<TOptions>)
Options

获取与方案关联的身份验证选项。

(继承自 BaseContext<TOptions>)
Properties

身份验证会话的附加状态值。

Request

请求。

(继承自 BaseContext<TOptions>)
Response

响应。

(继承自 BaseContext<TOptions>)
Result

HandleRequestResult处理程序使用的 。

(继承自 HandleRequestContext<TOptions>)
Scheme

身份验证方案。

(继承自 BaseContext<TOptions>)

方法

HandleResponse()

停止针对此请求的所有处理并返回到客户端。 调用方负责生成完整响应。

(继承自 HandleRequestContext<TOptions>)
SkipHandler()

停止处理当前处理程序中的请求。

(继承自 HandleRequestContext<TOptions>)

适用于