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