13 references to AspireDashboard
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\DashboardEventHandlers.cs (4)
65
if (@event.Model.Resources.SingleOrDefault(r => StringComparers.ResourceName.Equals(r.Name, KnownResourceNames.
AspireDashboard
)) is { } dashboardResource)
335
var dashboardResource = new ExecutableResource(KnownResourceNames.
AspireDashboard
, "dotnet", dashboardWorkingDirectory ?? "");
629
.Where(r => !string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName))
677
if (StringComparers.ResourceName.Equals(notification.Resource.Name, KnownResourceNames.
AspireDashboard
) && !dashboardResourceTasks.ContainsKey(notification.ResourceId))
Aspire.Hosting.Tests (7)
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 = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
241
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
);
DistributedApplicationTests.cs (1)
790
var aspireDashboard = model.Resources.Single(r => r.Name == KnownResourceNames.
AspireDashboard
);