19 references to DashboardOptionsMonitor
Aspire.Dashboard.Tests (19)
Integration\OtlpGrpcServiceTests.cs (1)
202using var monitorRegistration = app.DashboardOptionsMonitor.OnChange((o, n) =>
Integration\OtlpHttpServiceTests.cs (2)
193var exception = Assert.Throws<OptionsValidationException>(() => _ = app.DashboardOptionsMonitor.CurrentValue); 198var options = app.DashboardOptionsMonitor.CurrentValue.Otlp;
Integration\StartupTests.cs (16)
451Assert.Equal(OtlpAuthMode.ApiKey, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 452Assert.Equal("TestKey123!", app.DashboardOptionsMonitor.CurrentValue.Otlp.PrimaryApiKey); 652Assert.Equal(FrontendAuthMode.BrowserToken, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode); 653Assert.Equal(16, Convert.FromHexString(app.DashboardOptionsMonitor.CurrentValue.Frontend.BrowserToken!).Length); 654Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 655Assert.Equal(ApiAuthMode.ApiKey, app.DashboardOptionsMonitor.CurrentValue.Api.AuthMode); 656Assert.False(string.IsNullOrEmpty(app.DashboardOptionsMonitor.CurrentValue.Api.PrimaryApiKey), "A primary API key should be auto-generated."); 674Assert.Equal(FrontendAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode); 675Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 692Assert.Equal(ResourceClientAuthMode.Certificate, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.AuthMode); 693Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Source); 694Assert.Equal("MySubject", app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Subject); 1139Assert.Equal(value, app.DashboardOptionsMonitor.CurrentValue.UI.DisableResourceGraph); 1249Assert.Equal(launchContext, app.DashboardOptionsMonitor.CurrentValue.LaunchContext); 1288Assert.Equal(" CLI ", app.DashboardOptionsMonitor.CurrentValue.LaunchContext); 1294var exception = Assert.Throws<OptionsValidationException>(() => app.DashboardOptionsMonitor.CurrentValue);