Freigeben über


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions> Konstruktoren

Definition

Überlädt

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptions<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Initialisiert eine neue Instanz.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)
Veraltet.

Initialisiert eine neue Instanz.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount,TProviderOptions>>)

Initialisiert eine neue Instanz.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptions<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs

Initialisiert eine neue Instanz.

public:
 RemoteAuthenticationService(Microsoft::JSInterop::IJSRuntime ^ jsRuntime, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationOptions<TProviderOptions> ^> ^ options, Microsoft::AspNetCore::Components::NavigationManager ^ navigation, Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccountClaimsPrincipalFactory<TAccount> ^ accountClaimsPrincipalFactory);
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptions(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount))

Parameter

jsRuntime
IJSRuntime

Die , die IJSRuntime zum Ausführen von JavaScript-Interopvorgängen verwendet werden soll.

options
IOptions<RemoteAuthenticationOptions<TProviderOptions>>

Die Optionen, die an die zugrunde liegende JavaScript-Bibliothek übergeben werden sollen, die die Authentifizierungsvorgänge verarbeitet.

navigation
NavigationManager

Die , die NavigationManager zum Generieren von URLs verwendet wird.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

Die AccountClaimsPrincipalFactory<TAccount> , die verwendet wird, um die ClaimsPrincipal für den Benutzer zu generieren.

Gilt für:

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs

Achtung

Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.

Initialisiert eine neue Instanz.

public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
[System.Obsolete("Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.")]
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
[<System.Obsolete("Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.")>]
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptionsSnapshot(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount))

Parameter

jsRuntime
IJSRuntime

Die , die IJSRuntime zum Ausführen von JavaScript-Interopvorgängen verwendet werden soll.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Die Optionen, die an die zugrunde liegende JavaScript-Bibliothek übergeben werden sollen, die die Authentifizierungsvorgänge verarbeitet.

navigation
NavigationManager

Die , die NavigationManager zum Generieren von URLs verwendet wird.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

Die AccountClaimsPrincipalFactory<TAccount> , die verwendet wird, um die ClaimsPrincipal für den Benutzer zu generieren.

Attribute

Gilt für:

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount,TProviderOptions>>)

Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs

Initialisiert eine neue Instanz.

public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>> logger);
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>>? logger);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions>> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptionsSnapshot(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount), logger As ILogger(Of RemoteAuthenticationService(Of TRemoteAuthenticationState, TAccount, TProviderOptions)))

Parameter

jsRuntime
IJSRuntime

Die , die IJSRuntime zum Ausführen von JavaScript-Interopvorgängen verwendet werden soll.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Die Optionen, die an die zugrunde liegende JavaScript-Bibliothek übergeben werden sollen, die die Authentifizierungsvorgänge verarbeitet.

navigation
NavigationManager

Die , die NavigationManager zum Generieren von URLs verwendet wird.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

Die AccountClaimsPrincipalFactory<TAccount> , die verwendet wird, um die ClaimsPrincipal für den Benutzer zu generieren.

logger
ILogger<RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>>

Die Protokollierung, die für Anmeldeauthentifizierungsvorgänge verwendet werden soll.

Gilt für: