ResultContext<TOptions> 클래스

정의

AuthenticateResults를 생성하는 이벤트의 기본 컨텍스트입니다.

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

형식 매개 변수

TOptions
상속
ResultContext<TOptions>
파생

생성자

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

ResultContext<TOptions>의 새 인스턴스를 초기화합니다.

속성

HttpContext

컨텍스트입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Options

스키마와 연결된 인증 옵션을 가져옵니다.

(다음에서 상속됨 BaseContext<TOptions>)
Principal

사용자 클레임을 ClaimsPrincipal 포함하는 을 가져오거나 설정합니다.

Properties

AuthenticationProperties를 가져오거나 설정합니다.

Request

요청입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Response

응답입니다.

(다음에서 상속됨 BaseContext<TOptions>)
Result

결과를 가져옵니다 AuthenticateResult .

Scheme

인증 체계입니다.

(다음에서 상속됨 BaseContext<TOptions>)

메서드

Fail(Exception)

인증 중에 오류가 발생했음을 나타냅니다.

Fail(String)

인증 중에 오류가 발생했음을 나타냅니다.

NoResult()

이 인증 체계에 대해 반환된 정보가 없음을 나타냅니다.

Success()

Properties를 사용하여 티켓 만들기 성공을 호출합니다Principal.

적용 대상