9 instantiations of DashboardWebApplication
aspire-managed (1)
Program.cs (1)
40var app = new DashboardWebApplication(options: options);
Aspire.Dashboard (1)
Program.cs (1)
6var app = new DashboardWebApplication();
Aspire.Dashboard.Tests (7)
DashboardOptionsTests.cs (3)
304await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 348await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 380await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection(
Integration\IntegrationTestHelpers.cs (1)
77var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
51DashboardApp = new DashboardWebApplication(
Integration\StartupTests.cs (2)
1077await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1106await using var app = new DashboardWebApplication(preConfigureBuilder: builder =>
143 references to DashboardWebApplication
aspire-managed (1)
Program.cs (1)
40var app = new DashboardWebApplication(options: options);
Aspire.Dashboard (11)
DashboardWebApplication.cs (8)
70private readonly ILogger<DashboardWebApplication> _logger; 124/// Create a new instance of the <see cref="DashboardWebApplication"/> class. 605private ILogger<DashboardWebApplication> GetLogger() 607return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>(); 610private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 619private static void WriteVersion(ILogger<DashboardWebApplication> logger) 621if (AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly) is { Length: > 0 } informationalVersion) 706var logger = serverOptions.ApplicationServices.GetRequiredService<ILogger<DashboardWebApplication>>();
Program.cs (1)
6var app = new DashboardWebApplication();
Telemetry\DashboardTelemetryService.cs (2)
28{ TelemetryPropertyKeys.DashboardVersion, new AspireTelemetryProperty(AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly)) }, 29{ TelemetryPropertyKeys.DashboardBuildId, new AspireTelemetryProperty(AssemblyVersionHelper.GetFileVersion(typeof(DashboardWebApplication).Assembly)) },
Aspire.Dashboard.Tests (131)
DashboardOptionsTests.cs (7)
304await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 348await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 380await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 413var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 442var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 478var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 517var 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)
32await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 54await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 82await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 130await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 169await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 220await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 252await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 287await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 311await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 336await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 363await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 372var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 438await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 448var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 466await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 476var 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 (1)
85public DashboardWebApplication App { get; private set; } = null!;
Integration\IntegrationTestHelpers.cs (3)
39public static DashboardWebApplication CreateDashboardWebApplication( 51public static DashboardWebApplication CreateDashboardWebApplication( 77var 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 (11)
31await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 52await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 74await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 101await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 129await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 178await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, config => 247await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 276await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 302await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 341await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 380await 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 (12)
39await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 68await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 113await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 137await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 165await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 199await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 230await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 259await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, 308await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 333await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 362await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 391await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
19public DashboardWebApplication DashboardApp { get; private set; } = null!;
Integration\ResponseCompressionTests.cs (2)
18await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 40await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\StartupTests.cs (40)
39await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 51await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 70await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 107await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory); 138await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 175await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 191await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 216await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 249await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 282await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, 321await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 336await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 357await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 386DashboardWebApplication? app = null; 441DashboardWebApplication? app = null; 463if (w.LoggerName != typeof(DashboardWebApplication).FullName) 491DashboardWebApplication? app = null; 549await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 571await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 590await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 609await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 653await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 680await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink); 686var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 734await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 746var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 782await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 806.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 826DashboardWebApplication? app = null; 868var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 917await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 939await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 958await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1003await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1039await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1052await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1077await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1098Assert.Equal(DashboardWebApplication.ExitCodeAddressInUse, exitCode); 1106await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1114Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode);
Integration\TelemetryApiTests.cs (21)
32await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 55await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 79await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 102await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 127await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 151await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 173await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 195await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 216await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 235await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 256await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 275await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 296await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 322await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 345await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 376await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 409await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 431await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 453await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 472await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 492await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>