3 instantiations of DashboardWebApplication
Aspire.Dashboard (1)
Program.cs (1)
6
var app = new
DashboardWebApplication
();
Aspire.Dashboard.Tests (2)
Integration\IntegrationTestHelpers.cs (1)
75
var dashboardWebApplication = new
DashboardWebApplication
(builder =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
48
DashboardApp = new
DashboardWebApplication
(
87 references to DashboardWebApplication
Aspire.Dashboard (11)
DashboardWebApplication.cs (8)
53
private readonly ILogger<
DashboardWebApplication
> _logger;
107
/// Create a new instance of the <see cref="
DashboardWebApplication
"/> class.
488
private ILogger<
DashboardWebApplication
> GetLogger()
490
return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<
DashboardWebApplication
>();
493
private static void WriteValidationFailures(ILogger<
DashboardWebApplication
> logger, IReadOnlyList<string> validationFailures)
502
private static void WriteVersion(ILogger<
DashboardWebApplication
> logger)
504
if (typeof(
DashboardWebApplication
).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion is string informationalVersion)
603
var logger = serverOptions.ApplicationServices.GetRequiredService<ILogger<
DashboardWebApplication
>>();
Program.cs (1)
6
var
app = new DashboardWebApplication();
Telemetry\DashboardTelemetryService.cs (2)
27
{ TelemetryPropertyKeys.DashboardVersion, new AspireTelemetryProperty(typeof(
DashboardWebApplication
).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty) },
28
{ TelemetryPropertyKeys.DashboardBuildId, new AspireTelemetryProperty(typeof(
DashboardWebApplication
).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty) },
Aspire.Dashboard.Tests (76)
Integration\FrontendBrowserTokenAuthTests.cs (11)
32
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
54
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
85
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
109
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
134
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
161
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
170
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
221
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
231
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
248
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
258
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 (1)
17
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\IntegrationTestHelpers.cs (3)
39
public static
DashboardWebApplication
CreateDashboardWebApplication(
51
public static
DashboardWebApplication
CreateDashboardWebApplication(
75
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 (11)
31
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
52
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
74
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
101
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
129
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
178
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory, config =>
241
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
270
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
296
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
335
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
374
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
Integration\OtlpHttpServiceTests.cs (12)
39
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
65
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
107
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
131
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
159
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
193
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
224
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
253
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper,
302
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
327
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
356
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
385
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
18
public
DashboardWebApplication
DashboardApp { get; private set; } = null!;
Integration\ResponseCompressionTests.cs (2)
18
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
40
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
Integration\StartupTests.cs (29)
37
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
69
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
106
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
122
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
143
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
171
await using
var
dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
204
await using
var
dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory,
242
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
257
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
278
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
309
DashboardWebApplication
? app = null;
364
DashboardWebApplication
? app = null;
386
if (w.LoggerName != typeof(
DashboardWebApplication
).FullName)
414
DashboardWebApplication
? app = null;
472
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
490
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
509
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
528
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
571
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
598
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink);
604
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
649
DashboardWebApplication
? app = null;
684
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
730
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
749
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
794
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
830
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
843
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
863
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,