35 references to AspireDashboard
Aspire.Hosting (14)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
403
if (string.Equals(resource.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName) &&
Backchannel\AppHostRpcTarget.cs (1)
127
if (string.Equals(resourceEvent.Resource.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName))
Backchannel\DashboardUrlsHelper.cs (2)
39
r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName)) as IResourceWithEndpoints;
57
KnownResourceNames.
AspireDashboard
,
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
48
if (beforeStartEvent.Model.Resources.SingleOrDefault(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName)) is { } dashboardResource)
Dashboard\DashboardEventHandlers.cs (6)
57
if (@event.Model.Resources.SingleOrDefault(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName)) is { } dashboardResource)
130
dashboardResource = new ExecutableResource(KnownResourceNames.
AspireDashboard
, fullyQualifiedDashboardPath, dashboardWorkingDirectory ?? "");
142
KnownResourceNames.
AspireDashboard
,
153
dashboardResource = new ExecutableResource(KnownResourceNames.
AspireDashboard
, "dotnet", dashboardWorkingDirectory ?? "");
711
.Where(r => !string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName))
759
if (string.Equals(notification.Resource.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName) && !dashboardResourceTasks.ContainsKey(notification.ResourceId))
Dcp\ContainerCreator.cs (1)
341
if (_model.Resources.TryGetByName(KnownResourceNames.
AspireDashboard
, out var dashboardResource)
OtlpConfigurationExtensions.cs (1)
290
if (!model.Resources.TryGetByName(KnownResourceNames.
AspireDashboard
, out var resource) || resource is not IResourceWithEndpoints dashboardResource)
ProjectResourceBuilderExtensions.cs (1)
566
if (!string.Equals(builder.Resource.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName))
Aspire.Hosting.Testing.Tests (1)
DashboardUrlTests.cs (1)
316
Assert.Contains(KnownResourceNames.
AspireDashboard
, exception.Message, StringComparison.Ordinal);
Aspire.Hosting.Tests (20)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (5)
122
builder.AddResource(new CustomResource(KnownResourceNames.
AspireDashboard
));
152
Assert.Contains(result, r => r.Name == KnownResourceNames.
AspireDashboard
);
1642
builder.AddResource(new CustomResource(KnownResourceNames.
AspireDashboard
));
1709
builder.AddResource(new CustomResource(KnownResourceNames.
AspireDashboard
));
2164
var dashboard = Assert.Single(model.Resources, r => r.Name == KnownResourceNames.
AspireDashboard
);
Dashboard\DashboardEventHandlersTests.cs (8)
54
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
103
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
195
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
210
var dashboardResource = new ProjectResource(KnownResourceNames.
AspireDashboard
);
270
var dashboardResource = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
474
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
557
var dashboardResource = model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.
AspireDashboard
, StringComparisons.ResourceName));
631
Assert.Equal(KnownResourceNames.
AspireDashboard
, dashboardResource.Name);
Dashboard\DashboardResourceTests.cs (2)
117
var container = builder.AddContainer(KnownResourceNames.
AspireDashboard
, "my-image");
785
builder.AddProject<DashboardProject>(KnownResourceNames.
AspireDashboard
);
DistributedApplicationTests.cs (1)
1360
var aspireDashboard = model.Resources.Single(r => r.Name == KnownResourceNames.
AspireDashboard
);
WithOtlpExporterTests.cs (4)
157
var dashboard = builder.AddResource(new ContainerResource(KnownResourceNames.
AspireDashboard
));
194
var dashboard = builder.AddResource(new ContainerResource(KnownResourceNames.
AspireDashboard
));
249
var dashboard = builder.AddResource(new ContainerResource(KnownResourceNames.
AspireDashboard
));
279
var dashboard = builder.AddResource(new ContainerResource(KnownResourceNames.
AspireDashboard
));