1 write to Services
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
85Services = new ServiceCollection();
28 references to Services
Microsoft.AspNetCore.Components.WebAssembly (28)
Hosting\WebAssemblyHostBuilder.cs (28)
86Logging = new LoggingBuilder(Services); 116return Services.BuildServiceProvider(options); 199Services.AddSingleton<IWebAssemblyHostEnvironment>(hostEnvironment); 200Services.AddSingleton<IHostEnvironment>(sp => new WebAssemblyHostEnvironmentAdapter(sp.GetRequiredService<IWebAssemblyHostEnvironment>())); 296var container = factory.CreateBuilder(Services); 320Services.AddSingleton<IConfiguration>(Configuration); 335Services.AddSingleton<IJSRuntime>(DefaultWebAssemblyJSRuntime.Instance); 336Services.AddSingleton<NavigationManager>(WebAssemblyNavigationManager.Instance); 337Services.AddSingleton<INavigationInterception>(WebAssemblyNavigationInterception.Instance); 338Services.AddSingleton<IScrollToLocationHash>(WebAssemblyScrollToLocationHash.Instance); 339Services.AddSingleton(_jsMethods); 340Services.AddSingleton(new LazyAssemblyLoader(DefaultWebAssemblyJSRuntime.Instance)); 341Services.AddSingleton(_ => _rootComponentCache ?? new()); 342Services.AddSingleton<ComponentStatePersistenceManager>(); 343Services.AddSingleton(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State); 344Services.AddSupplyValueFromPersistentComponentStateProvider(); 345Services.AddSingleton<IErrorBoundaryLogger, WebAssemblyErrorBoundaryLogger>(); 346Services.AddSingleton<ResourceCollectionProvider>(); 347RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<ResourceCollectionProvider>(Services, RenderMode.InteractiveWebAssembly); 348Services.AddLogging(builder => 352Services.AddSingleton<AntiforgeryStateProvider, DefaultAntiforgeryStateProvider>(); 353RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<AntiforgeryStateProvider>(Services, RenderMode.InteractiveWebAssembly); 354Services.AddSingleton<CultureStateProvider>(); 355RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<CultureStateProvider>(Services, RenderMode.InteractiveWebAssembly); 356Services.AddSupplyValueFromQueryProvider(); 361ComponentsMetricsServiceCollectionExtensions.AddComponentsMetrics(Services); 362ComponentsMetricsServiceCollectionExtensions.AddComponentsTracing(Services); 364Services.AddSingleton<HostedServiceExecutor>();