1 write to Name
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
34
Name
= name;
7 references to Name
Aspire.Hosting (3)
ApplicationModel\ResourceNotificationService.cs (2)
612
var existingCommand = FindByName(previousState.Commands, annotation.
Name
);
673
return new ResourceCommandSnapshot(annotation.
Name
, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
ResourceBuilderExtensions.cs (1)
1133
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (3)
1207
a => Assert.Equal(KnownResourceCommands.StartCommand, a.
Name
),
1208
a => Assert.Equal(KnownResourceCommands.StopCommand, a.
Name
),
1209
a => Assert.Equal(KnownResourceCommands.RestartCommand, a.
Name
));
ResourceCommandAnnotationTests.cs (1)
47
var startCommand = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().Single(a => a.
Name
== commandName);