次の方法で共有


WebAssemblyAuthenticationServiceCollectionExtensions.AddAuthenticationStateDeserialization メソッド

定義

AuthenticationStateDataPersistentComponentStateを使用してサーバーから 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

戻り値

適用対象