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
(
85 references to DashboardWebApplication
Aspire.Dashboard (11)
DashboardWebApplication.cs (8)
51
private readonly ILogger<
DashboardWebApplication
> _logger;
105
/// Create a new instance of the <see cref="
DashboardWebApplication
"/> class.
471
private ILogger<
DashboardWebApplication
> GetLogger()
473
return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<
DashboardWebApplication
>();
476
private static void WriteValidationFailures(ILogger<
DashboardWebApplication
> logger, IReadOnlyList<string> validationFailures)
485
private static void WriteVersion(ILogger<
DashboardWebApplication
> logger)
487
if (typeof(
DashboardWebApplication
).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion is string informationalVersion)
586
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 (74)
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 (11)
35
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
61
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper);
103
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
127
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
155
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
189
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, config =>
220
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
248
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
273
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
302
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(_testOutputHelper, dictionary =>
331
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 (28)
36
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
68
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
105
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
121
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
142
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
170
await using
var
dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
203
await using
var
dashboardWebResource = IntegrationTestHelpers.CreateDashboardWebApplication(loggerFactory,
241
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
256
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
277
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
304
DashboardWebApplication
? app = null;
359
DashboardWebApplication
? app = null;
381
if (w.LoggerName != typeof(
DashboardWebApplication
).FullName)
409
DashboardWebApplication
? app = null;
467
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
485
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
504
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
523
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
566
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
593
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper, testSink: testSink);
599
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
644
DashboardWebApplication
? app = null;
679
var l = testSink.Writes.Where(w => w.LoggerName == typeof(
DashboardWebApplication
).FullName).ToList();
725
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);
744
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
789
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
825
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper,
838
await using
var
app = IntegrationTestHelpers.CreateDashboardWebApplication(testOutputHelper);