11 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)
87return new DashboardWebApplication(
Aspire.Dashboard.Tests (9)
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)
100var dashboardWebApplication = new DashboardWebApplication(builder =>
Integration\StartupTests.cs (3)
1188await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1226await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1332await using var app = new DashboardWebApplication(preConfigureBuilder: builder =>
Integration\StaticAssetsTests.cs (1)
167await using var app = new DashboardWebApplication(
187 references to DashboardWebApplication
Aspire.Dashboard (14)
DashboardWebApplication.cs (10)
82private readonly ILogger<DashboardWebApplication> _logger; 136/// Create a new instance of the <see cref="DashboardWebApplication"/> class. 178var dashboardAssemblyName = typeof(DashboardWebApplication).Assembly.GetName().Name; 682var manifestFileName = $"{typeof(DashboardWebApplication).Assembly.GetName().Name}.staticwebassets.{manifestKind}.json"; 720private ILogger<DashboardWebApplication> GetLogger() 722return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>(); 725private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 734private static void WriteVersion(ILogger<DashboardWebApplication> logger) 736if (AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly) is { Length: > 0 } informationalVersion) 821var 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)
255await using var firstDashboard = CreateDashboard(firstApplicationName); 256await using var secondDashboard = CreateDashboard(secondApplicationName); 275private static DashboardWebApplication CreateDashboard(string applicationName)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (2)
32public DashboardWebApplication DashboardApp { get; private set; } = null!; 71internal static DashboardWebApplication CreateDashboardApp(
Aspire.Dashboard.Tests (166)
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(); 473await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 483var 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)
61public static DashboardWebApplication CreateDashboardWebApplication( 73public static DashboardWebApplication CreateDashboardWebApplication( 100var 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 (15)
40await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 70await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 95await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper); 143await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 186await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 214await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 241await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 269await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 303await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config => 334await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 363await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, 412await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 437await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 466await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary => 495await 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 (48)
67await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 91await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 134await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 149await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 161await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 180await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 217await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory); 247await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 279await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 295await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 320await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 353await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 386await using var dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, 425await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 440await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 458await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 479DashboardWebApplication? app = null; 534DashboardWebApplication? app = null; 556if (w.LoggerName != typeof(DashboardWebApplication).FullName) 584DashboardWebApplication? app = null; 642await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 664await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 683await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 702await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 746await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 773await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink); 779var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 827await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 839var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 875await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 899.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 919DashboardWebApplication? app = null; 961var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 1010await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1032await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1051await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1096await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1132await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, 1145await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1159await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 1188await using (var app = new DashboardWebApplication(preConfigureBuilder: builder => 1209Assert.Equal(DashboardWebApplication.ExitCodeAddressInUse, exitCode); 1226await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1271await using var app = IntegrationTestHelpers.CreateDashboardWebApplication( 1307Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1332await using var app = new DashboardWebApplication(preConfigureBuilder: builder => 1340Assert.Equal(DashboardWebApplication.ExitCodeValidationFailure, exitCode); 1349var reason = DashboardWebApplication.GetStartupFailureReason(
Integration\StaticAssetsTests.cs (8)
31await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, config => 72await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 90await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, config => 113await using var app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper); 167await using var app = new DashboardWebApplication( 223Assert.Null(DashboardWebApplication.ResolveStaticAssetsManifestPath(contentRoot, baseDir)); 228Assert.Equal(contentManifestPath, DashboardWebApplication.ResolveStaticAssetsManifestPath(contentRoot, baseDir)); 233Assert.Equal(baseManifestPath, DashboardWebApplication.ResolveStaticAssetsManifestPath(contentRoot, baseDir));
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)
373Assert.Equal(Aspire.Shared.AssemblyVersionHelper.GetInformationalVersion(typeof(DashboardWebApplication).Assembly), defaultVersion); 374Assert.Equal(Aspire.Shared.AssemblyVersionHelper.GetFileVersion(typeof(DashboardWebApplication).Assembly), defaultBuildId);