WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Metoda

Definice

Přidá AuthenticationStateProvider, kde je AuthenticationState deserializován ze serveru pomocí AuthenticationStateData a PersistentComponentState. V projektu serveru by mělo existovat odpovídající volání AddAuthenticationStateSerialization z balíčku Microsoft.AspNetCore.Components.WebAssembly.Server.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationStateDeserialization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthenticationStateDeserializationOptions>? configure = default);
static member AddAuthenticationStateDeserialization : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthenticationStateDeserializationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationStateDeserialization (services As IServiceCollection, Optional configure As Action(Of AuthenticationStateDeserializationOptions) = Nothing) As IServiceCollection

Parametry

services
IServiceCollection

IServiceCollection pro přidání služeb.

Návraty

Platí pro