6 instantiations of DashboardWebApplication
Aspire.Dashboard (1)
Program.cs (1)
6var app = new DashboardWebApplication();
Aspire.Dashboard.Tests (4)
DashboardOptionsTests.cs (2)
257await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 301await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection(
Integration\IntegrationTestHelpers.cs (1)
77var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
49DashboardApp = new DashboardWebApplication(
aspire-managed (1)
Program.cs (1)
24var app = new DashboardWebApplication(options: options);
143 references to DashboardWebApplication
Aspire.Dashboard (11)
DashboardWebApplication.cs (8)
55private readonly ILogger<DashboardWebApplication> _logger; 115/// Create a new instance of the <see cref="DashboardWebApplication"/> class. 538private ILogger<DashboardWebApplication> GetLogger() 540return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>(); 543private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 552private static void WriteVersion(ILogger<DashboardWebApplication> logger) 554if (typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion is string informationalVersion) 640var logger = serverOptions.ApplicationServices.GetRequiredService<ILogger<DashboardWebApplication>>();
Program.cs (1)
6var app = new DashboardWebApplication();
Telemetry\DashboardTelemetryService.cs (2)
28{ TelemetryPropertyKeys.DashboardVersion, new AspireTelemetryProperty(typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty) }, 29{ TelemetryPropertyKeys.DashboardBuildId, new AspireTelemetryProperty(typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty) },
Aspire.Dashboard.Tests (131)
DashboardOptionsTests.cs (6)
257await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 301await using var app = new DashboardWebApplication(builder => builder.Configuration.AddInMemoryCollection( 340var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 369var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 405var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction); 444var configure = DashboardWebApplication.GetOidcClaimActionConfigure(claimAction);
Integration\FrontendBrowserTokenAuthTests.cs (11)
32await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 54await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 85await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 109await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 134await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 161await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 170var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 238await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 248var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 265await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 275var 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)
17await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\IntegrationTestHelpers.cs (3)
39public static DashboardWebApplication CreateDashboardWebApplication( 51public static DashboardWebApplication CreateDashboardWebApplication( 77var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\McpServiceTests.cs (9)
30await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 55await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 77await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 100await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 132await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 165await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 202await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 220await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, 257await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(
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 => 241await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 270await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 296await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 335await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 374await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
Integration\OtlpHttpJsonTests.cs (8)
406await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 467await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 544await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 594await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 647await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 675await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 697await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 715await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
Integration\OtlpHttpServiceTests.cs (12)
39await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 65await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 107await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 131await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 159await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 193await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 224await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 253await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, 302await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 327await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 356await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 385await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
18public 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 (37)
38await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 70await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 107await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 123await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 144await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 172await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 205await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, 243await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 258await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 279await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 310DashboardWebApplication? app = null; 365DashboardWebApplication? app = null; 445DashboardWebApplication? app = null; 467if (w.LoggerName != typeof(DashboardWebApplication).FullName) 495DashboardWebApplication? app = null; 553await 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, 652await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 679await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink); 685var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 741await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 753var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 786await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 797var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning).ToList(); 813await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 837.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 857DashboardWebApplication? app = null; 900var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 957await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 979await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 998await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1043await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1079await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1092await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1112await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
Integration\TelemetryApiTests.cs (24)
32await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 50await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 70await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 92await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 116await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 139await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 164await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 188await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 210await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 232await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 253await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 272await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 293await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 312await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 333await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 359await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 383await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 406await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 437await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 470await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 492await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 514await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 533await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 553await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
aspire-managed (1)
Program.cs (1)
24var app = new DashboardWebApplication(options: options);