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