ResultContext<TOptions> Klasa

Definicja

Kontekst podstawowy dla zdarzeń generujących uwierzytelnianieResults.

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)

Parametry typu

TOptions
Dziedziczenie
ResultContext<TOptions>
Pochodne

Konstruktory

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

Inicjuje nowe wystąpienie klasy ResultContext<TOptions>.

Właściwości

HttpContext

Kontekst.

(Odziedziczone po BaseContext<TOptions>)
Options

Pobiera opcje uwierzytelniania skojarzone ze schematem.

(Odziedziczone po BaseContext<TOptions>)
Principal

Pobiera lub ustawia ClaimsPrincipal zawierające oświadczenia użytkownika.

Properties

Pobiera lub ustawia wartość AuthenticationProperties.

Request

Żądanie.

(Odziedziczone po BaseContext<TOptions>)
Response

Odpowiedź.

(Odziedziczone po BaseContext<TOptions>)
Result

AuthenticateResult Pobiera wynik.

Scheme

Schemat uwierzytelniania.

(Odziedziczone po BaseContext<TOptions>)

Metody

Fail(Exception)

Wskazuje, że podczas uwierzytelniania wystąpił błąd.

Fail(String)

Wskazuje, że podczas uwierzytelniania wystąpił błąd.

NoResult()

Wskazuje, że dla tego schematu uwierzytelniania nie zostały zwrócone żadne informacje.

Success()

Wywołuje powodzenie tworzenia biletu za pomocą poleceń Principal i Properties.

Dotyczy