12 references to KnownResourceNames
Aspire.Hosting (6)
Backchannel\AppHostRpcTarget.cs (1)
127
KnownResourceNames
.AspireDashboard,
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
44
if (beforeStartEvent.Model.Resources.SingleOrDefault(r => StringComparers.ResourceName.Equals(r.Name,
KnownResourceNames
.AspireDashboard)) is { } dashboardResource)
Dashboard\DashboardLifecycleHook.cs (4)
65
if (appModel.Resources.SingleOrDefault(r => StringComparers.ResourceName.Equals(r.Name,
KnownResourceNames
.AspireDashboard)) is { } dashboardResource)
370
var dashboardResource = new ExecutableResource(
KnownResourceNames
.AspireDashboard, "dotnet", dashboardWorkingDirectory ?? "");
643
.Where(r => !string.Equals(r.Name,
KnownResourceNames
.AspireDashboard, StringComparisons.ResourceName))
691
if (StringComparers.ResourceName.Equals(notification.Resource.Name,
KnownResourceNames
.AspireDashboard) && !dashboardResourceTasks.ContainsKey(notification.ResourceId))
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (4)
53
if (item.Name.StartsWith(
KnownResourceNames
.AspireDashboard) && item.AnySubscribers)
90
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name,
KnownResourceNames
.AspireDashboard, StringComparisons.ResourceName));
138
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name,
KnownResourceNames
.AspireDashboard, StringComparisons.ResourceName));
235
Assert.Equal(
KnownResourceNames
.AspireDashboard, dashboardResource.Name);
Dashboard\DashboardResourceTests.cs (2)
100
var container = builder.AddContainer(
KnownResourceNames
.AspireDashboard, "my-image");
534
builder.AddProject<DashboardProject>(
KnownResourceNames
.AspireDashboard);