21 references to Disabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
34return ResourceCommandState.Disabled; 67return ResourceCommandState.Disabled; 101return ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
134Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
1688commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (16)
ResourceCommandAnnotationTests.cs (15)
13[InlineData(KnownResourceCommands.StartCommand, "Starting", ResourceCommandState.Disabled)] 21[InlineData(KnownResourceCommands.StartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)] 22[InlineData(KnownResourceCommands.StartCommand, "", ResourceCommandState.Disabled)] 23[InlineData(KnownResourceCommands.StartCommand, null, ResourceCommandState.Disabled)] 25[InlineData(KnownResourceCommands.StopCommand, "Stopping", ResourceCommandState.Disabled)] 35[InlineData(KnownResourceCommands.RestartCommand, "Starting", ResourceCommandState.Disabled)] 36[InlineData(KnownResourceCommands.RestartCommand, "Stopping", ResourceCommandState.Disabled)] 38[InlineData(KnownResourceCommands.RestartCommand, "Exited", ResourceCommandState.Disabled)] 39[InlineData(KnownResourceCommands.RestartCommand, "Finished", ResourceCommandState.Disabled)] 40[InlineData(KnownResourceCommands.RestartCommand, "FailedToStart", ResourceCommandState.Disabled)] 41[InlineData(KnownResourceCommands.RestartCommand, "Unknown", ResourceCommandState.Disabled)] 42[InlineData(KnownResourceCommands.RestartCommand, "Waiting", ResourceCommandState.Disabled)] 43[InlineData(KnownResourceCommands.RestartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)] 44[InlineData(KnownResourceCommands.RestartCommand, "", ResourceCommandState.Disabled)] 45[InlineData(KnownResourceCommands.RestartCommand, null, ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
437Assert.Equal(ResourceCommandState.Disabled, commandState);