WebAssemblyRazorComponentsBuilderExtensions.AddAuthenticationStateSerialization メソッド

定義

クライアント プロジェクトの Microsoft.AspNetCore.Components.WebAssembly.Authentication パッケージから AddAuthenticationStateDeserialization を呼び出すことによって追加できる逆シリアル化クライアント側 AuthenticationStateProvider を介して、対話型の WebAssembly コンポーネントで使用する PersistentComponentState を使用して、サーバー側の AuthenticationStateProvider によって返される AuthenticationState をシリアル化します。

public static Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder AddAuthenticationStateSerialization (this Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder builder, Action<Microsoft.AspNetCore.Components.WebAssembly.Server.AuthenticationStateSerializationOptions>? configure = default);
static member AddAuthenticationStateSerialization : Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder * Action<Microsoft.AspNetCore.Components.WebAssembly.Server.AuthenticationStateSerializationOptions> -> Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder
<Extension()>
Public Function AddAuthenticationStateSerialization (builder As IRazorComponentsBuilder, Optional configure As Action(Of AuthenticationStateSerializationOptions) = Nothing) As IRazorComponentsBuilder

パラメーター

configure
Action<AuthenticationStateSerializationOptions>

AuthenticationStateのシリアル化をカスタマイズするコールバック。

戻り値

構成をさらにカスタマイズするために使用できる IRazorComponentsBuilder

適用対象