2 writes to Services
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
207Services = _app.Services; 390Services = _app.Services;
18 references to Services
Aspire.Dashboard.Tests (18)
DashboardOptionsTests.cs (3)
310var options = app.Services.GetService<IOptionsMonitor<DashboardOptions>>()!; 359var openIdConnectAuthOptions = app.Services.GetService<IOptionsMonitor<OpenIdConnectOptions>>()?.Get(OpenIdConnectDefaults.AuthenticationScheme); 388var cookieOptions = app.Services.GetRequiredService<IOptionsMonitor<CookieAuthenticationOptions>>().Get(CookieAuthenticationDefaults.AuthenticationScheme);
Integration\HealthTests.cs (1)
70var activitySource = fixture.App.Services.GetRequiredService<DashboardActivitySource>();
Integration\OtlpHttpJsonTests.cs (5)
524var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 584var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 661var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 711var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 761var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>();
Integration\StartupTests.cs (8)
53var databasePool = app.Services.GetRequiredService<DashboardDataSourcePool>(); 55var currentRun = app.Services.GetRequiredService<IDashboardRunStore>().GetRuns().Single(run => run.IsCurrent); 56var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<ITelemetryRepository>()); 62Assert.Same(databasePool.Current.ResourceRepository, app.Services.GetRequiredService<IResourceRepository>()); 63Assert.Null(app.Services.GetService<DashboardSqliteDatabase>()); 621var options = app.Services.GetRequiredService<IOptions<LoggerFilterOptions>>(); 663var options = app.Services.GetRequiredService<IOptions<LoggerFilterOptions>>(); 1055var loggerProviders = app.Services.GetServices<ILoggerProvider>();
Integration\TelemetryApiTests.cs (1)
42var options = app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;