13 references to Enabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
38return ResourceCommandState.Enabled; 71return ResourceCommandState.Enabled; 105return ResourceCommandState.Enabled;
Dashboard\proto\Partials.cs (1)
119Hosting.ApplicationModel.ResourceCommandState.Enabled => ResourceCommandState.Enabled,
ResourceBuilderExtensions.cs (1)
1139return 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)
16[InlineData(KnownResourceCommands.StartCommand, "Exited", ResourceCommandState.Enabled)] 17[InlineData(KnownResourceCommands.StartCommand, "Finished", ResourceCommandState.Enabled)] 18[InlineData(KnownResourceCommands.StartCommand, "FailedToStart", ResourceCommandState.Enabled)] 19[InlineData(KnownResourceCommands.StartCommand, "Unknown", ResourceCommandState.Enabled)] 20[InlineData(KnownResourceCommands.StartCommand, "Waiting", ResourceCommandState.Enabled)] 24[InlineData(KnownResourceCommands.StopCommand, "Running", ResourceCommandState.Enabled)] 33[InlineData(KnownResourceCommands.RestartCommand, "Running", ResourceCommandState.Enabled)]