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