17 references to Services
BasicTestApp (1)
Program.cs (1)
67uri = new Uri(host.Services.GetService<NavigationManager>().Uri);
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyHost.cs (4)
134var manager = Services.GetRequiredService<ComponentStatePersistenceManager>(); 151var loggerFactory = Services.GetRequiredService<ILoggerFactory>(); 153var collectionProvider = Services.GetRequiredService<ResourceCollectionProvider>(); 155_renderer = new WebAssemblyRenderer(Services, collection, loggerFactory, jsComponentInterop);
Microsoft.AspNetCore.Components.WebAssembly.Tests (12)
Hosting\WebAssemblyHostBuilderTest.cs (11)
48Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 66Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 88Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 89Assert.NotNull(host.Services.GetRequiredService<List<string>>()); 105Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 106Assert.Throws<InvalidOperationException>(() => host.Services.GetRequiredService<TestServiceThatTakesStringBuilder>()); 122Assert.NotNull(host.Services.GetRequiredService<StringBuilder>()); 123Assert.NotNull(host.Services.GetRequiredService<TestServiceThatTakesStringBuilder>()); 147var navigationManager = host.Services.GetRequiredService<NavigationManager>(); 202var configuration = host.Services.GetRequiredService<IConfiguration>(); 246var loggerProvider = host.Services.GetRequiredService<ILoggerProvider>();
Hosting\WebAssemblyHostTest.cs (1)
69var disposable = host.Services.GetRequiredService<DisposableService>();