2 writes to Services
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
187Services = _app.Services; 345Services = _app.Services;
15 references to Services
Aspire.Dashboard.Tests (15)
DashboardOptionsTests.cs (2)
263var options = app.Services.GetService<IOptionsMonitor<DashboardOptions>>()!; 312var openIdConnectAuthOptions = app.Services.GetService<IOptionsMonitor<OpenIdConnectOptions>>()?.Get(OpenIdConnectDefaults.AuthenticationScheme);
Integration\McpServiceTests.cs (1)
261var telemetryService = app.Services.GetRequiredService<DashboardTelemetryService>();
Integration\OtlpHttpJsonTests.cs (4)
428var telemetryRepository = app.Services.GetRequiredService<TelemetryRepository>(); 489var telemetryRepository = app.Services.GetRequiredService<TelemetryRepository>(); 566var telemetryRepository = app.Services.GetRequiredService<TelemetryRepository>(); 616var telemetryRepository = app.Services.GetRequiredService<TelemetryRepository>();
Integration\StartupTests.cs (5)
288var aiContextProvider = app.Services.GetRequiredService<IAIContextProvider>(); 620var options = app.Services.GetRequiredService<IOptions<LoggerFilterOptions>>(); 661var options = app.Services.GetRequiredService<IOptions<LoggerFilterOptions>>(); 1010var loggerProviders = app.Services.GetServices<ILoggerProvider>(); 1039var aiContextProvider = app.Services.GetRequiredService<IAIContextProvider>();
Integration\TelemetryApiTests.cs (3)
40var options = app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue; 59var options = app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue; 80var options = app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;