다음을 통해 공유


WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization 메서드

정의

AuthenticationStateData PersistentComponentState사용하여 서버에서 AuthenticationState 역직렬화되는 AuthenticationStateProvider 추가합니다. 서버 프로젝트의 Microsoft.AspNetCore.Components.WebAssembly.Server 패키지에서 AddAuthenticationStateSerialization에 대한 해당 호출이 있어야 합니다.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection.

반환

적용 대상