Share via


ResultContext<TOptions> Sınıf

Tanım

AuthenticateResults üreten olaylar için temel bağlam.

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)

Tür Parametreleri

TOptions
Devralma
ResultContext<TOptions>
Türetilmiş

Oluşturucular

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

yeni bir örneğini ResultContext<TOptions>başlatır.

Özellikler

HttpContext

Bağlam.

(Devralındığı yer: BaseContext<TOptions>)
Options

Şemayla ilişkili kimlik doğrulama seçeneklerini alır.

(Devralındığı yer: BaseContext<TOptions>)
Principal

Kullanıcı taleplerini içeren öğesini alır veya ayarlar ClaimsPrincipal .

Properties

öğesini alır veya ayarlar AuthenticationProperties.

Request

İstek.

(Devralındığı yer: BaseContext<TOptions>)
Response

Yanıt.

(Devralındığı yer: BaseContext<TOptions>)
Result

AuthenticateResult Sonucu alır.

Scheme

Kimlik doğrulama düzeni.

(Devralındığı yer: BaseContext<TOptions>)

Yöntemler

Fail(Exception)

Kimlik doğrulaması sırasında bir hata olduğunu gösterir.

Fail(String)

Kimlik doğrulaması sırasında bir hata olduğunu gösterir.

NoResult()

Bu kimlik doğrulama düzeni için hiçbir bilgi döndürülmedi gösterir.

Success()

ve Propertiesile bilet oluşturma başarısını Principal çağırır.

Şunlara uygulanır