Condividi tramite


WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Metodo

Definizione

Aggiunge un AuthenticationStateProvider in cui il AuthenticationState viene deserializzato dal server usando AuthenticationStateData e PersistentComponentState. Nel progetto server deve essere presente una chiamata corrispondente a AddAuthenticationStateSerialization dal pacchetto 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

Parametri

services
IServiceCollection

Il IServiceCollection a cui aggiungere i servizi.

Restituisce

Si applica a