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