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