17 references to Disabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
34return ResourceCommandState.Disabled; 67return ResourceCommandState.Disabled; 101return ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
133Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
1641commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (12)
ResourceCommandAnnotationTests.cs (11)
13[InlineData(KnownResourceCommands.StartCommand, "Starting", ResourceCommandState.Disabled)] 21[InlineData(KnownResourceCommands.StartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)] 23[InlineData(KnownResourceCommands.StopCommand, "Stopping", ResourceCommandState.Disabled)] 31[InlineData(KnownResourceCommands.RestartCommand, "Starting", ResourceCommandState.Disabled)] 32[InlineData(KnownResourceCommands.RestartCommand, "Stopping", ResourceCommandState.Disabled)] 34[InlineData(KnownResourceCommands.RestartCommand, "Exited", ResourceCommandState.Disabled)] 35[InlineData(KnownResourceCommands.RestartCommand, "Finished", ResourceCommandState.Disabled)] 36[InlineData(KnownResourceCommands.RestartCommand, "FailedToStart", ResourceCommandState.Disabled)] 37[InlineData(KnownResourceCommands.RestartCommand, "Unknown", ResourceCommandState.Disabled)] 38[InlineData(KnownResourceCommands.RestartCommand, "Waiting", ResourceCommandState.Disabled)] 39[InlineData(KnownResourceCommands.RestartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
393Assert.Equal(ResourceCommandState.Disabled, commandState);