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