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