Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
17 references to Services
Aspire.Dashboard (8)
DashboardWebApplication.cs (8)
184_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 187Services = _app.Services; 343_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 345Services = _app.Services; 366var corsOptions = _app.Services.GetRequiredService<IOptions<CorsOptions>>().Value; 425var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue; 437var telemetryService = _app.Services.GetRequiredService<DashboardTelemetryService>(); 540return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
207var 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)
434var serviceProviderIsService = _builtApplication.Services.GetService<IServiceProviderIsService>();
Publishers.DbSetup (1)
Program.cs (1)
9using var scope = app.Services.CreateScope();
SqlServerEndToEnd.DbSetup (1)
Program.cs (1)
11using var scope = app.Services.CreateScope();
Stress.ApiService (1)
Program.cs (1)
41_ = app.Services.GetRequiredService<TestMetrics>();
WaitForSandbox.DbSetup (1)
Program.cs (1)
9using var scope = app.Services.CreateScope();