1 write to Name
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
34
Name
= name;
13 references to Name
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
113
var annotation = resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== commandName);
ApplicationModel\ResourceNotificationService.cs (2)
656
var existingCommand = FindByName(previousState.Commands, annotation.
Name
);
717
return new ResourceCommandSnapshot(annotation.
Name
, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
ResourceBuilderExtensions.cs (2)
1540
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
1605
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (3)
1278
a => Assert.Equal(KnownResourceCommands.StartCommand, a.
Name
),
1279
a => Assert.Equal(KnownResourceCommands.StopCommand, a.
Name
),
1280
a => Assert.Equal(KnownResourceCommands.RestartCommand, a.
Name
));
ResourceCommandAnnotationTests.cs (1)
52
var startCommand = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().Single(a => a.
Name
== commandName);
WithHttpCommandTests.cs (4)
94
Assert.Equal($"{resourceBuilder.Resource.Name}-http-http-post-/some-path", command.
Name
);
126
Assert.Equal("my-command-name", command.
Name
);
153
var command2 = commands.FirstOrDefault(c => c.DisplayName == "Do The Thing" && c.
Name
.Contains("custom-endpoint"));
155
var command4 = commands.FirstOrDefault(c => c.DisplayName == "Do The Get Thing" && c.
Name
.Contains("custom-endpoint"));