1 write to Type
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
34Type = type;
7 references to Type
Aspire.Hosting (3)
ApplicationModel\ResourceNotificationService.cs (2)
401var existingCommand = FindByType(previousState.Commands, annotation.Type); 462return new ResourceCommandSnapshot(annotation.Type, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
ResourceBuilderExtensions.cs (1)
894var existingAnnotation = builder.Resource.Annotations.OfType<ResourceCommandAnnotation>().SingleOrDefault(a => a.Type == type);
Aspire.Hosting.Tests (4)
Dcp\ApplicationExecutorTests.cs (3)
995a => Assert.Equal(CommandsConfigurationExtensions.StartType, a.Type), 996a => Assert.Equal(CommandsConfigurationExtensions.StopType, a.Type), 997a => Assert.Equal(CommandsConfigurationExtensions.RestartType, a.Type));
ResourceCommandAnnotationTests.cs (1)
40var startCommand = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().Single(a => a.Type == commandType);