WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.
- configure
- Action<AuthenticationStateDeserializationOptions>
Acción que configurará el AuthenticationStateDeserializationOptions.