19 references to KnownDashboardLaunchContexts
Aspire.Dashboard (7)
Telemetry\DashboardStartupTelemetry.cs (7)
23
KnownDashboardLaunchContexts
.AppHost =>
KnownDashboardLaunchContexts
.AppHost,
24
KnownDashboardLaunchContexts
.Cli =>
KnownDashboardLaunchContexts
.Cli,
25
KnownDashboardLaunchContexts
.Container =>
KnownDashboardLaunchContexts
.Container,
26
_ =>
KnownDashboardLaunchContexts
.Unknown
Aspire.Dashboard.Tests (12)
Integration\StartupTests.cs (3)
1126
[InlineData(
KnownDashboardLaunchContexts
.AppHost)]
1127
[InlineData(
KnownDashboardLaunchContexts
.Cli)]
1204
Assert.Equal(
KnownDashboardLaunchContexts
.Cli, attributes[TelemetryPropertyKeys.StartupLaunchContext]);
Telemetry\DashboardStartupTelemetryTests.cs (9)
39
Assert.Equal(
KnownDashboardLaunchContexts
.AppHost, attributes[TelemetryPropertyKeys.StartupLaunchContext]);
53
[InlineData("AppHost",
KnownDashboardLaunchContexts
.AppHost)]
54
[InlineData(" CLI ",
KnownDashboardLaunchContexts
.Cli)]
55
[InlineData("Container",
KnownDashboardLaunchContexts
.Container)]
56
[InlineData("unknown",
KnownDashboardLaunchContexts
.Unknown)]
57
[InlineData("custom-context",
KnownDashboardLaunchContexts
.Unknown)]
58
[InlineData("",
KnownDashboardLaunchContexts
.Unknown)]
59
[InlineData(" ",
KnownDashboardLaunchContexts
.Unknown)]
60
[InlineData(null,
KnownDashboardLaunchContexts
.Unknown)]