72 references to Disabled
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
40return ResourceCommandState.Disabled; 73return ResourceCommandState.Disabled; 113return ResourceCommandState.Disabled; 177: ResourceCommandState.Disabled;
Dashboard\proto\Partials.cs (1)
175Hosting.ApplicationModel.ResourceCommandState.Disabled => ResourceCommandState.Disabled,
ResourceBuilderExtensions.cs (1)
3704return targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (3)
928return _state.Status.CurrentIntent is null ? ResourceCommandState.Enabled : ResourceCommandState.Disabled; 972return activeOperation!.CancellationRequested ? ResourceCommandState.Disabled : ResourceCommandState.Enabled; 976? ResourceCommandState.Disabled
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
365return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled; 376return context.ResourceSnapshot.State?.Text == KnownResourceStates.Running ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Azure.Tests (13)
AzureEnvironmentResourceExtensionsTests.cs (13)
1422AssertCommandState(storageEvent.Snapshot, AzureProvisioningController.ChangeResourceLocationCommandName, ResourceCommandState.Disabled); 1425AssertCommandState(storageEvent.Snapshot, AzureProvisioningController.DeleteAzureResourceCommandName, ResourceCommandState.Disabled); 1426AssertCommandState(storageEvent.Snapshot, AzureProvisioningController.ForgetStateCommandName, ResourceCommandState.Disabled); 1427AssertCommandState(storageEvent.Snapshot, AzureProvisioningController.ReprovisionResourceCommandName, ResourceCommandState.Disabled); 1972Assert.All(environmentEvent.Snapshot.Commands, command => Assert.Equal(ResourceCommandState.Disabled, command.State)); 2247Assert.All(environmentEvent.Snapshot.Commands, command => Assert.Equal(ResourceCommandState.Disabled, command.State)); 2307Assert.All(environmentEvent.Snapshot.Commands, command => Assert.Equal(ResourceCommandState.Disabled, command.State)); 2479AssertCommandState(storageEvent.Snapshot, AzureProvisioningController.CancelCommandName, ResourceCommandState.Disabled); 2727Assert.All(environmentEvent.Snapshot.Commands, command => Assert.Equal(ResourceCommandState.Disabled, command.State)); 5034AssertCommandState(snapshot, AzureProvisioningController.ChangeResourceLocationCommandName, ResourceCommandState.Disabled); 5037AssertCommandState(snapshot, AzureProvisioningController.DeleteAzureResourceCommandName, ResourceCommandState.Disabled); 5038AssertCommandState(snapshot, AzureProvisioningController.ForgetStateCommandName, ResourceCommandState.Disabled); 5039AssertCommandState(snapshot, AzureProvisioningController.ReprovisionResourceCommandName, ResourceCommandState.Disabled);
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
223: ResourceCommandState.Disabled;
Aspire.Hosting.Blazor.Tests (5)
WithBlazorAppTests.cs (5)
237[InlineData("Starting", ResourceCommandState.Disabled)] 238[InlineData("Exited", ResourceCommandState.Disabled)] 266[InlineData(false, null, ResourceCommandState.Disabled)] 267[InlineData(true, null, ResourceCommandState.Disabled)] 268[InlineData(true, false, ResourceCommandState.Disabled)]
Aspire.Hosting.Browsers (4)
BrowserLogsBuilderExtensions.cs (4)
182return ResourceCommandState.Disabled; 195return ResourceCommandState.Disabled; 229: ResourceCommandState.Disabled; 281: ResourceCommandState.Disabled;
Aspire.Hosting.Browsers.Tests (6)
BrowserLogsBuilderExtensionsTests.cs (2)
1349command.State == ResourceCommandState.Disabled)).DefaultTimeout(); 1351Assert.Equal(ResourceCommandState.Disabled, initialEvent.Snapshot.Commands.Single(command => command.Name == BrowserLogsBuilderExtensions.OpenTrackedBrowserCommandName).State);
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (4)
182return ResourceCommandState.Disabled; 195return ResourceCommandState.Disabled; 229: ResourceCommandState.Disabled; 281: ResourceCommandState.Disabled;
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
624: ResourceCommandState.Disabled;
Aspire.Hosting.DevTunnels.Tests (2)
DevTunnelResourceBuilderExtensionsTests.cs (2)
482Assert.Equal(ResourceCommandState.Disabled, stoppedState); 483Assert.Equal(ResourceCommandState.Disabled, unavailableState);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
793return ResourceCommandState.Disabled;
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFMigrationCommandsTests.cs (2)
242Assert.Equal(ResourceCommandState.Disabled, state); 273Assert.Equal(ResourceCommandState.Disabled, state);
Aspire.Hosting.Tests (26)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
238new 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)
959Assert.Equal(ResourceCommandState.Disabled, startingEvent.Snapshot.Commands.First(c => c.Name == "mycommand").State);