13 references to Enabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
41return ResourceCommandState.Enabled; 74return ResourceCommandState.Enabled; 108return ResourceCommandState.Enabled;
Dashboard\proto\Partials.cs (1)
119Hosting.ApplicationModel.ResourceCommandState.Enabled => ResourceCommandState.Enabled,
ResourceBuilderExtensions.cs (1)
1030return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));
Aspire.Hosting.Tests (8)
Dashboard\DashboardServiceTests.cs (1)
95updateState: c => ApplicationModel.ResourceCommandState.Enabled,
ResourceCommandAnnotationTests.cs (7)
15[InlineData(CommandsConfigurationExtensions.StartCommandName, "Exited", ResourceCommandState.Enabled)] 16[InlineData(CommandsConfigurationExtensions.StartCommandName, "Finished", ResourceCommandState.Enabled)] 17[InlineData(CommandsConfigurationExtensions.StartCommandName, "FailedToStart", ResourceCommandState.Enabled)] 18[InlineData(CommandsConfigurationExtensions.StartCommandName, "Unknown", ResourceCommandState.Enabled)] 19[InlineData(CommandsConfigurationExtensions.StartCommandName, "Waiting", ResourceCommandState.Enabled)] 23[InlineData(CommandsConfigurationExtensions.StopCommandName, "Running", ResourceCommandState.Enabled)] 32[InlineData(CommandsConfigurationExtensions.RestartCommandName, "Running", ResourceCommandState.Enabled)]