24 references to Disabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
34return ResourceCommandState.Disabled; 67return ResourceCommandState.Disabled; 107return ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
150Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
2277return targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
344return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled; 355return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (17)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
122new ResourceCommandSnapshot("stop", ResourceCommandState.Disabled, "Stop", "Stop the resource", null, null, null, null, false),
ResourceCommandAnnotationTests.cs (15)
13[InlineData("start", "Starting", ResourceCommandState.Disabled)] 21[InlineData("start", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 22[InlineData("start", "", ResourceCommandState.Disabled)] 23[InlineData("start", null, ResourceCommandState.Disabled)] 25[InlineData("stop", "Stopping", ResourceCommandState.Disabled)] 35[InlineData("restart", "Starting", ResourceCommandState.Disabled)] 36[InlineData("restart", "Stopping", ResourceCommandState.Disabled)] 38[InlineData("restart", "Exited", ResourceCommandState.Disabled)] 39[InlineData("restart", "Finished", ResourceCommandState.Disabled)] 40[InlineData("restart", "FailedToStart", ResourceCommandState.Disabled)] 41[InlineData("restart", "Unknown", ResourceCommandState.Disabled)] 42[InlineData("restart", "Waiting", ResourceCommandState.Disabled)] 43[InlineData("restart", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 44[InlineData("restart", "", ResourceCommandState.Disabled)] 45[InlineData("restart", null, ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
428Assert.Equal(ResourceCommandState.Disabled, startingEvent.Snapshot.Commands.First(c => c.Name == "mycommand").State);