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)
145Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
1945commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (16)
ResourceCommandAnnotationTests.cs (15)
11[InlineData("resource-start", "Starting", ResourceCommandState.Disabled)] 19[InlineData("resource-start", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 20[InlineData("resource-start", "", ResourceCommandState.Disabled)] 21[InlineData("resource-start", null, ResourceCommandState.Disabled)] 23[InlineData("resource-stop", "Stopping", ResourceCommandState.Disabled)] 33[InlineData("resource-restart", "Starting", ResourceCommandState.Disabled)] 34[InlineData("resource-restart", "Stopping", ResourceCommandState.Disabled)] 36[InlineData("resource-restart", "Exited", ResourceCommandState.Disabled)] 37[InlineData("resource-restart", "Finished", ResourceCommandState.Disabled)] 38[InlineData("resource-restart", "FailedToStart", ResourceCommandState.Disabled)] 39[InlineData("resource-restart", "Unknown", ResourceCommandState.Disabled)] 40[InlineData("resource-restart", "Waiting", ResourceCommandState.Disabled)] 41[InlineData("resource-restart", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 42[InlineData("resource-restart", "", ResourceCommandState.Disabled)] 43[InlineData("resource-restart", null, ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
406Assert.Equal(ResourceCommandState.Disabled, commandState);