Поделиться через


RemoteAuthenticationBuilderExtensions.AddAccountClaimsPrincipalFactory Метод

Определение

Перегрузки

AddAccountClaimsPrincipalFactory<TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<RemoteAuthenticationState,RemoteUserAccount>)

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccount, TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<TRemoteAuthenticationState, TAccount>)

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<TRemoteAuthenticationState, RemoteUserAccount>)

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

AddAccountClaimsPrincipalFactory<TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<RemoteAuthenticationState,RemoteUserAccount>)

Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> AddAccountClaimsPrincipalFactory<TAccountClaimsPrincipalFactory> (this Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> builder) where TAccountClaimsPrincipalFactory : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount>;
static member AddAccountClaimsPrincipalFactory : Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> (requires 'AccountClaimsPrincipalFactory :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount>)
<Extension()>
Public Function AddAccountClaimsPrincipalFactory(Of TAccountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of RemoteUserAccount)) (builder As IRemoteAuthenticationBuilder(Of RemoteAuthenticationState, RemoteUserAccount)) As IRemoteAuthenticationBuilder(Of RemoteAuthenticationState, RemoteUserAccount)

Параметры типа

TAccountClaimsPrincipalFactory

Новый тип фабрики пользователей.

Параметры

Возвращаемое значение

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>.

Применяется к

AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccount, TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<TRemoteAuthenticationState, TAccount>)

Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccount,TAccountClaimsPrincipalFactory> (this Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> builder) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, new() where TAccount : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount where TAccountClaimsPrincipalFactory : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount>;
static member AddAccountClaimsPrincipalFactory : Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'AccountClaimsPrincipalFactory :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account>)
<Extension()>
Public Function AddAccountClaimsPrincipalFactory(Of TRemoteAuthenticationState As {RemoteAuthenticationStateNew}, TAccount As {RemoteAuthenticationStateNew}, TAccountClaimsPrincipalFactory As {RemoteAuthenticationStateNew}) (builder As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)

Параметры типа

TRemoteAuthenticationState

Состояние удаленной проверки подлинности.

TAccount

Тип учетной записи.

TAccountClaimsPrincipalFactory

Новый тип фабрики пользователей.

Параметры

Возвращаемое значение

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>.

Применяется к

AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<TRemoteAuthenticationState, RemoteUserAccount>)

Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs
Исходный код:
RemoteAuthenticationBuilderExtensions.cs

Заменяет существующий AccountClaimsPrincipalFactory<TAccount> фабрикой пользователей, определенной в TAccountClaimsPrincipalFactory.

public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccountClaimsPrincipalFactory> (this Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> builder) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, new() where TAccountClaimsPrincipalFactory : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount>;
static member AddAccountClaimsPrincipalFactory : Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState))> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState))> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'AccountClaimsPrincipalFactory :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount>)
<Extension()>
Public Function AddAccountClaimsPrincipalFactory(Of TRemoteAuthenticationState As {RemoteAuthenticationStateNew}, TAccountClaimsPrincipalFactory As {RemoteAuthenticationStateNew}) (builder As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, RemoteUserAccount)) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, RemoteUserAccount)

Параметры типа

TRemoteAuthenticationState

Состояние удаленной проверки подлинности.

TAccountClaimsPrincipalFactory

Новый тип фабрики пользователей.

Параметры

Возвращаемое значение

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,RemoteUserAccount>

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>.

Применяется к