11 references to Enabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
40return ResourceCommandState.Enabled; 72return ResourceCommandState.Enabled; 105return ResourceCommandState.Enabled;
Dashboard\proto\Partials.cs (1)
119Hosting.ApplicationModel.ResourceCommandState.Enabled => ResourceCommandState.Enabled,
ResourceBuilderExtensions.cs (1)
1008return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));
Aspire.Hosting.Tests (6)
Dashboard\DashboardServiceTests.cs (1)
95updateState: c => ApplicationModel.ResourceCommandState.Enabled,
ResourceCommandAnnotationTests.cs (5)
15[InlineData(CommandsConfigurationExtensions.StartCommandName, "Exited", ResourceCommandState.Enabled)] 16[InlineData(CommandsConfigurationExtensions.StartCommandName, "Finished", ResourceCommandState.Enabled)] 17[InlineData(CommandsConfigurationExtensions.StartCommandName, "FailedToStart", ResourceCommandState.Enabled)] 22[InlineData(CommandsConfigurationExtensions.StopCommandName, "Running", ResourceCommandState.Enabled)] 30[InlineData(CommandsConfigurationExtensions.RestartCommandName, "Running", ResourceCommandState.Enabled)]