10 instantiations of DashboardWebApplication
Aspire.Dashboard (1)
Program.cs (1)
28var app = new DashboardWebApplication(options: options);
Aspire.Dashboard.Playwright.Tests (1)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
80return new DashboardWebApplication(
Aspire.Dashboard.Tests (8)
DashboardOptionsTests.cs (4)
377await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 416await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 476await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 508await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection(
Integration\IntegrationTestHelpers.cs (1)
79var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\StartupTests.cs (3)
1101await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1139await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1245await using var app = new DashboardWebApplication(preConfigureBuilder: builder =>
168 references to DashboardWebApplication
Aspire.Dashboard (12)
DashboardWebApplication.cs (8)
80private readonly ILogger<DashboardWebApplication> _logger; 134/// Create a new instance of the <see cref="DashboardWebApplication"/> class. 664private ILogger<DashboardWebApplication> GetLogger() 666return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>(); 669private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 678private static void WriteVersion(ILogger<DashboardWebApplication> logger) 680if (AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly) is { Length: > 0 } informationalVersion) 765var logger = serverOptions.ApplicationServices.GetRequiredService<ILogger<DashboardWebApplication>>();
Program.cs (1)
28var app = new DashboardWebApplication(options: options);
Telemetry\DashboardTelemetryManager.cs (1)
153serviceVersion: AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly));
Telemetry\DashboardTelemetryService.cs (2)
245tags.Add(new(TelemetryPropertyKeys.DashboardVersion, AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly))); 246tags.Add(new(TelemetryPropertyKeys.DashboardBuildId, AssemblyVersionHelper.GetFileVersion(typeof(DashboardWebApplication).Assembly)));
Aspire.Dashboard.Components.Tests (2)
RoutedComponentTrimmingTests.cs (2)
21var preservedTypes = typeof(DashboardWebApplication).GetConstructors() 26var routedComponents = typeof(DashboardWebApplication).Assembly.GetTypes()
Aspire.Dashboard.Playwright.Tests (5)
Integration\Playwright\BrowserTokenAuthenticationTests.cs (3)
183await using var firstDashboard = CreateDashboard(firstApplicationName); 184await using var secondDashboard = CreateDashboard(secondApplicationName); 203private static DashboardWebApplication CreateDashboard(string applicationName)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (2)
25public DashboardWebApplication DashboardApp { get; private set; } = null!; 64internal static DashboardWebApplication CreateDashboardApp(
Aspire.Dashboard.Tests (149)
DashboardOptionsTests.cs (8)
377await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 416await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 476await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 508await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 542var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 571var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 607var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 646var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction);
Integration\BlazorWebSocketOriginTests.cs (2)
19await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 34await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\FrontendBrowserTokenAuthTests.cs (16)
33await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 55await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 83await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 131await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 171await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 223await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 255await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 291await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 315await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 340await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 367await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 376var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 442await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 452var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 470await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 480var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList();
Integration\FrontendOpenIdConnectAuthTests.cs (2)
21await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 65await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(
Integration\HealthTests.cs (2)
98await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 125public DashboardWebApplication App { get; private set; } = null!;
Integration\IntegrationTestHelpers.cs (3)
40public static DashboardWebApplication CreateDashboardWebApplication( 52public static DashboardWebApplication CreateDashboardWebApplication( 79var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\OtlpCorsHttpServiceTests.cs (4)
24await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 45await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 86await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 113await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
Integration\OtlpGrpcServiceTests.cs (12)
33await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 54await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 76await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 103await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 131await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 180await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, config => 249await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 277await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 306await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 332await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 371await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 410await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
Integration\OtlpHttpJsonTests.cs (9)
502await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 562await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 639await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 689await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 741await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 827await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 855await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 877await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 895await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
Integration\OtlpHttpServiceTests.cs (14)
40await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 69await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 117await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 160await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 188await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 215await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 243await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 277await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 308await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 337await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, 386await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 411await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 440await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 469await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
Integration\ResponseCompressionTests.cs (2)
18await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 41await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\StartupTests.cs (46)
41await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 56await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 68await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 87await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 124await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory); 155await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 192await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 208await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 233await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 266await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 299await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, 338await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 353await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 371await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 392DashboardWebApplication? app = null; 447DashboardWebApplication? app = null; 469if (w.LoggerName != typeof(DashboardWebApplication).FullName) 497DashboardWebApplication? app = null; 555await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 577await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 596await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 615await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 659await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 686await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink); 692var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 740await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 752var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 788await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 812.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 832DashboardWebApplication? app = null; 874var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 923await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 945await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 964await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1009await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1045await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1058await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1072await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1101await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1122Assert.Equal(DashboardWebApplication.ExitCodeAddressInUse, exitCode); 1139await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1184await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 1220Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1245await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1253Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1262var reason = DashboardWebApplication.GetStartupFailureReason(
Integration\TelemetryApiTests.cs (21)
31await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 54await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 78await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 101await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 126await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 152await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 174await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 196await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 217await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 236await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 257await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 276await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 297await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 323await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 346await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 377await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 410await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 432await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 454await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 473await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 493await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
Integration\TerminalWebSocketAuthenticationTests.cs (1)
25await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, config =>
SecurityOptionsBindingTests.cs (1)
36DashboardWebApplication.BindCertificateAuthenticationOptions(
Shared\TerminalTestHost.cs (1)
22private readonly DashboardWebApplication _app;
Telemetry\DashboardTelemetryManagerTests.cs (1)
103var expectedVersion = AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly);
Telemetry\DashboardTelemetryMetadataTests.cs (2)
46new("aspire.dashboard.version", AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly)), 47new("aspire.dashboard.build_id", AssemblyVersionHelper.GetFileVersion(typeof(DashboardWebApplication).Assembly)),
Telemetry\DashboardTelemetryServiceTests.cs (2)
369Assert.Equal(Aspire.Shared.AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly), defaultVersion); 370Assert.Equal(Aspire.Shared.AssemblyVersionHelper.GetFileVersion(typeof(DashboardWebApplication).Assembly), defaultBuildId);