Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
18 references to Services
Aspire.Dashboard (8)
DashboardWebApplication.cs (8)
205_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 208Services = _app.Services; 396_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 398Services = _app.Services; 419var corsOptions = _app.Services.GetRequiredService<IOptions<CorsOptions>>().Value; 466var telemetryService = _app.Services.GetRequiredService<DashboardTelemetryService>(); 591var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue; 615return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
265var addressFeature = _app.Services.GetService<IServer>()?.Features.Get<IServerAddressesFeature>();
Microsoft.AspNetCore (4)
WebApplication.cs (3)
88IServiceProvider IEndpointRouteBuilder.ServiceProvider => Services; 265public IServiceProvider Services => _webApplication.Services; 275var dataSource = _webApplication.Services.GetRequiredService<EndpointDataSource>();
WebApplicationBuilder.cs (1)
460var serviceProviderIsService = _builtApplication.Services.GetService<IServiceProviderIsService>();
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerFactory.cs (1)
144_configProvider = _proxyApp.Services.GetRequiredService<InMemoryConfigProvider>();
Nats.ApiService (1)
Program.cs (1)
18var jetStream = app.Services.GetRequiredService<INatsJSContext>();
Publishers.DbSetup (1)
Program.cs (1)
9using var scope = app.Services.CreateScope();
Stress.ApiService (1)
Program.cs (1)
42_ = app.Services.GetRequiredService<TestMetrics>();
WaitForSandbox.DbSetup (1)
Program.cs (1)
9using var scope = app.Services.CreateScope();