21 references to Disabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
35return ResourceCommandState.Disabled; 68return ResourceCommandState.Disabled; 102return ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
145Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
1910commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (16)
ResourceCommandAnnotationTests.cs (15)
12[InlineData(KnownResourceCommands.StartCommand, "Starting", ResourceCommandState.Disabled)] 20[InlineData(KnownResourceCommands.StartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)] 21[InlineData(KnownResourceCommands.StartCommand, "", ResourceCommandState.Disabled)] 22[InlineData(KnownResourceCommands.StartCommand, null, ResourceCommandState.Disabled)] 24[InlineData(KnownResourceCommands.StopCommand, "Stopping", ResourceCommandState.Disabled)] 34[InlineData(KnownResourceCommands.RestartCommand, "Starting", ResourceCommandState.Disabled)] 35[InlineData(KnownResourceCommands.RestartCommand, "Stopping", ResourceCommandState.Disabled)] 37[InlineData(KnownResourceCommands.RestartCommand, "Exited", ResourceCommandState.Disabled)] 38[InlineData(KnownResourceCommands.RestartCommand, "Finished", ResourceCommandState.Disabled)] 39[InlineData(KnownResourceCommands.RestartCommand, "FailedToStart", ResourceCommandState.Disabled)] 40[InlineData(KnownResourceCommands.RestartCommand, "Unknown", ResourceCommandState.Disabled)] 41[InlineData(KnownResourceCommands.RestartCommand, "Waiting", ResourceCommandState.Disabled)] 42[InlineData(KnownResourceCommands.RestartCommand, "RuntimeUnhealthy", ResourceCommandState.Disabled)] 43[InlineData(KnownResourceCommands.RestartCommand, "", ResourceCommandState.Disabled)] 44[InlineData(KnownResourceCommands.RestartCommand, null, ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
406Assert.Equal(ResourceCommandState.Disabled, commandState);