1 write to Name
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
34
Name
= name;
19 references to Name
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (2)
592
var existingCommand = FindByName(previousState.Commands, annotation.
Name
);
653
return new ResourceCommandSnapshot(annotation.
Name
, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
Dashboard\DashboardServiceData.cs (1)
96
var annotation = resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== type);
ResourceBuilderExtensions.cs (2)
1423
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
1488
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
Aspire.Hosting.Tests (14)
Dcp\DcpExecutorTests.cs (3)
1238
a => Assert.Equal(KnownResourceCommands.StartCommand, a.
Name
),
1239
a => Assert.Equal(KnownResourceCommands.StopCommand, a.
Name
),
1240
a => Assert.Equal(KnownResourceCommands.RestartCommand, a.
Name
));
ResourceCommandAnnotationTests.cs (1)
53
var startCommand = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().Single(a => a.
Name
== commandName);
WithHttpCommandTests.cs (10)
95
Assert.Equal($"{resourceBuilder.Resource.Name}-http-http-post-/some-path", command.
Name
);
127
Assert.Equal("my-command-name", command.
Name
);
154
var command2 = commands.FirstOrDefault(c => c.DisplayName == "Do The Thing" && c.
Name
.Contains("custom-endpoint"));
156
var command4 = commands.FirstOrDefault(c => c.DisplayName == "Do The Get Thing" && c.
Name
.Contains("custom-endpoint"));
184
var command = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");
214
var command = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");
243
var command = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");
288
var command = serviceB.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");
331
var command = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");
375
var command = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().First(c => c.
Name
== "mycommand");