Compartilhar via


WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization Método

Definição

Adiciona um AuthenticationStateProvider em que o AuthenticationState é desserializado do servidor usando AuthenticationStateData e PersistentComponentState. Deve haver uma chamada correspondente para AddAuthenticationStateSerialization do pacote Microsoft.AspNetCore.Components.WebAssembly.Server no projeto do 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

O IServiceCollection ao qual adicionar os serviços.

Retornos

Aplica-se a