Skip to content

Commit

Permalink
Update src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssembly…
Browse files Browse the repository at this point in the history
…HostBuilder.cs
  • Loading branch information
MackinnonBuck authored Apr 16, 2024
1 parent b06b3c4 commit cd5974b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,6 @@ internal void InitializeDefaultServices()
Services.AddSingleton(new LazyAssemblyLoader(DefaultWebAssemblyJSRuntime.Instance));
Services.AddSingleton<RootComponentTypeCache>(_ => _rootComponentCache ?? new());
Services.AddSingleton<ComponentStatePersistenceManager>();
//Services.AddSingleton<ComponentStatePersistenceManager>(static sp =>
//{
// var jsonOptions = sp.GetRequiredService<IOptions<JsonOptions>>();
// var logger = sp.GetRequiredService<ILogger<ComponentStatePersistenceManager>>();
// return new(jsonOptions, logger);
//});
Services.AddSingleton<PersistentComponentState>(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State);
Services.AddSingleton<AntiforgeryStateProvider, DefaultAntiforgeryStateProvider>();
Services.AddSingleton<IErrorBoundaryLogger, WebAssemblyErrorBoundaryLogger>();
Expand Down

0 comments on commit cd5974b

Please sign in to comment.