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