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)
84return 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)
1144await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1182await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1288await using var app = new DashboardWebApplication(preConfigureBuilder: builder =>
175 references to DashboardWebApplication
Aspire.Dashboard (12)
DashboardWebApplication.cs (8)
81private readonly ILogger<DashboardWebApplication> _logger; 135/// Create a new instance of the <see cref="DashboardWebApplication"/> class. 686private ILogger<DashboardWebApplication> GetLogger() 688return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>(); 691private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 700private static void WriteVersion(ILogger<DashboardWebApplication> logger) 702if (AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly) is { Length: > 0 } informationalVersion) 787var 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 dashboardAssembly = typeof(DashboardWebApplication).Assembly; 25var preservationMembers = typeof(DashboardWebApplication).GetConstructors().Cast<MemberInfo>()
Aspire.Dashboard.Playwright.Tests (5)
Integration\Playwright\BrowserTokenAuthenticationTests.cs (3)
181await using var firstDashboard = CreateDashboard(firstApplicationName); 182await using var secondDashboard = CreateDashboard(secondApplicationName); 201private static DashboardWebApplication CreateDashboard(string applicationName)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (2)
29public DashboardWebApplication DashboardApp { get; private set; } = null!; 68internal static DashboardWebApplication CreateDashboardApp(
Aspire.Dashboard.Tests (156)
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 (10)
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); 897await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 934await 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\SetLanguageEndpointTests.cs (5)
25await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 40await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 61await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 80await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 95await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
Integration\StartupTests.cs (47)
61await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 84await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 99await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 111await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 130await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 167await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory); 198await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 235await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 251await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 276await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 309await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 342await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, 381await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 396await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 414await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 435DashboardWebApplication? app = null; 490DashboardWebApplication? app = null; 512if (w.LoggerName != typeof(DashboardWebApplication).FullName) 540DashboardWebApplication? app = null; 598await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 620await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 639await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 658await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 702await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 729await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink); 735var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 783await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 795var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 831await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 855.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 875DashboardWebApplication? app = null; 917var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 966await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 988await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1007await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1052await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1088await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1101await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1115await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1144await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1165Assert.Equal(DashboardWebApplication.ExitCodeAddressInUse, exitCode); 1182await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1227await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 1263Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1288await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1296Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1305var 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);