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)
400
var existingCommand = FindByName(previousState.Commands, annotation.
Name
);
461
return new ResourceCommandSnapshot(annotation.
Name
, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
ResourceBuilderExtensions.cs (1)
1002
var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.
Name
== name);
Aspire.Hosting.Tests (4)
Dcp\ApplicationExecutorTests.cs (3)
1039
a => Assert.Equal(CommandsConfigurationExtensions.StartCommandName, a.
Name
),
1040
a => Assert.Equal(CommandsConfigurationExtensions.StopCommandName, a.
Name
),
1041
a => Assert.Equal(CommandsConfigurationExtensions.RestartCommandName, a.
Name
));
ResourceCommandAnnotationTests.cs (1)
43
var startCommand = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().Single(a => a.
Name
== commandName);