34 references to Disabled
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
37return ResourceCommandState.Disabled; 70return ResourceCommandState.Disabled; 110return ResourceCommandState.Disabled; 172: ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
150Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
2456return targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
348return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled; 359return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Tests (26)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
122new ResourceCommandSnapshot("stop", ResourceCommandState.Disabled, "Stop", "Stop the resource", null, null, null, null, false),
ResourceCommandAnnotationTests.cs (24)
13[InlineData("start", "Starting", ResourceCommandState.Disabled)] 21[InlineData("start", "Building", ResourceCommandState.Disabled)] 22[InlineData("start", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 23[InlineData("start", "", ResourceCommandState.Disabled)] 24[InlineData("start", null, ResourceCommandState.Disabled)] 26[InlineData("stop", "Stopping", ResourceCommandState.Disabled)] 37[InlineData("restart", "Starting", ResourceCommandState.Disabled)] 38[InlineData("restart", "Stopping", ResourceCommandState.Disabled)] 40[InlineData("restart", "Exited", ResourceCommandState.Disabled)] 41[InlineData("restart", "Finished", ResourceCommandState.Disabled)] 42[InlineData("restart", "FailedToStart", ResourceCommandState.Disabled)] 43[InlineData("restart", "Unknown", ResourceCommandState.Disabled)] 44[InlineData("restart", "Waiting", ResourceCommandState.Disabled)] 45[InlineData("restart", "Building", ResourceCommandState.Disabled)] 46[InlineData("restart", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 47[InlineData("restart", "", ResourceCommandState.Disabled)] 48[InlineData("restart", null, ResourceCommandState.Disabled)] 120[InlineData("rebuild", "Starting", ResourceCommandState.Disabled)] 121[InlineData("rebuild", "Stopping", ResourceCommandState.Disabled)] 126[InlineData("rebuild", "Unknown", ResourceCommandState.Disabled)] 128[InlineData("rebuild", "RuntimeUnhealthy", ResourceCommandState.Disabled)] 129[InlineData("rebuild", "Building", ResourceCommandState.Disabled)] 130[InlineData("rebuild", "", ResourceCommandState.Disabled)] 131[InlineData("rebuild", null, ResourceCommandState.Disabled)]
WithHttpCommandTests.cs (1)
428Assert.Equal(ResourceCommandState.Disabled, startingEvent.Snapshot.Commands.First(c => c.Name == "mycommand").State);