15 references to Enabled
aspire (3)
Backchannel\ResourceSnapshotMapper.cs (1)
256
return string.Equals(state, KnownCommandState.
Enabled
, StringComparison.OrdinalIgnoreCase)
Mcp\Tools\ListResourcesTool.cs (2)
313
State = string.Equals(command.State, KnownCommandState.
Enabled
, StringComparison.OrdinalIgnoreCase)
314
? KnownCommandState.
Enabled
Aspire.Cli.Tests (12)
Backchannel\ResourceSnapshotMapperTests.cs (11)
174
new ResourceSnapshotCommand { Name = "restart", State = KnownCommandState.
Enabled
, Description = "Restart" },
183
Assert.Equal(KnownCommandState.
Enabled
, result.Commands["restart"].State);
198
new ResourceSnapshotCommand { Name = "api-only", State = KnownCommandState.
Enabled
, Description = "API only", Visibility = KnownCommandVisibility.Api },
199
new ResourceSnapshotCommand { Name = "ui-only", State = KnownCommandState.
Enabled
, Description = "UI only", Visibility = KnownCommandVisibility.UI },
224
new ResourceSnapshotCommand { Name = "set-parameter", State = KnownCommandState.
Enabled
, Description = "Set", Visibility = KnownCommandVisibility.Api },
225
new ResourceSnapshotCommand { Name = "custom-action", State = KnownCommandState.
Enabled
, Description = "Custom", Visibility = KnownCommandVisibility.Api },
226
new ResourceSnapshotCommand { Name = "delete-parameter", State = KnownCommandState.
Enabled
, Description = "Delete", Visibility = KnownCommandVisibility.Api }
252
new ResourceSnapshotCommand { Name = "set-parameter", State = KnownCommandState.
Enabled
, Description = "Set", Visibility = KnownCommandVisibility.Api },
253
new ResourceSnapshotCommand { Name = "custom-action", State = KnownCommandState.
Enabled
, Description = "Custom", Visibility = KnownCommandVisibility.Api },
254
new ResourceSnapshotCommand { Name = "delete-parameter", State = KnownCommandState.
Enabled
, Description = "Delete", Visibility = KnownCommandVisibility.Api }
282
State = KnownCommandState.
Enabled
,
Commands\DescribeCommandTests.cs (1)
593
State = KnownCommandState.
Enabled
,