Compartir a través de


WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Método

Definición

Agrega un AuthenticationStateProvider donde el AuthenticationState se deserializa desde el servidor mediante AuthenticationStateData y PersistentComponentState. Debe haber una llamada correspondiente a AddAuthenticationStateSerialization desde el paquete Microsoft.AspNetCore.Components.WebAssembly.Server en el proyecto de servidor.

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

Parámetros

services
IServiceCollection

La IServiceCollection a la que agregar los servicios.

Devoluciones

Se aplica a