29 writes to State
Aspire.Cli.Tests (29)
Backchannel\ResourceSnapshotMapperTests.cs (19)
101State = "Enabled", 127new ResourceSnapshotCommand { Name = "start", State = "Disabled", Description = "Start" }, 128new ResourceSnapshotCommand { Name = "save", State = "Hidden", Description = "Save parameter" }, 129new ResourceSnapshotCommand { Name = "dashboard-only", State = "Enabled", Description = "UI only", Visibility = KnownCommandVisibility.UI }, 130new ResourceSnapshotCommand { Name = "missing-visibility", State = "Enabled", Description = "Missing visibility", Visibility = null! } 190new ResourceSnapshotCommand { Name = "restart", State = KnownCommandState.Enabled, Description = "Restart" }, 191new ResourceSnapshotCommand { Name = "start", State = KnownCommandState.Disabled, Description = "Start" }, 192new ResourceSnapshotCommand { Name = "save", State = KnownCommandState.Hidden, Description = "Save parameter" } 214new ResourceSnapshotCommand { Name = "api-only", State = KnownCommandState.Enabled, Description = "API only", Visibility = KnownCommandVisibility.Api }, 215new ResourceSnapshotCommand { Name = "ui-only", State = KnownCommandState.Enabled, Description = "UI only", Visibility = KnownCommandVisibility.UI }, 216new ResourceSnapshotCommand { Name = "ui-disabled", State = KnownCommandState.Disabled, Description = "UI disabled", Visibility = KnownCommandVisibility.UI } 240new ResourceSnapshotCommand { Name = "set-parameter", State = KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api }, 241new ResourceSnapshotCommand { Name = "custom-action", State = KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api }, 242new ResourceSnapshotCommand { Name = "delete-parameter", State = KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api } 268new ResourceSnapshotCommand { Name = "set-parameter", State = KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api }, 269new ResourceSnapshotCommand { Name = "custom-action", State = KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api }, 270new ResourceSnapshotCommand { Name = "delete-parameter", State = KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api } 298State = KnownCommandState.Enabled, 341State = "Enabled",
Commands\DescribeCommandTests.cs (2)
706State = KnownCommandState.Enabled, 713State = KnownCommandState.Disabled,
Commands\ResourceCommandTests.cs (1)
2395State = state,
Mcp\ListResourcesToolTests.cs (7)
516State = "Enabled", 556new ResourceSnapshotCommand { Name = "disabled", State = "disabled", Visibility = "api" }, 557new ResourceSnapshotCommand { Name = "hidden", State = "Hidden" }, 558new ResourceSnapshotCommand { Name = "ui-only", State = "Enabled", Visibility = "UI" }, 559new ResourceSnapshotCommand { Name = "none", State = "Enabled", Visibility = "None" } 577State = "Enabled", 952State = "Enabled",
5 references to State
aspire (5)
Backchannel\ResourceSnapshotMapper.cs (3)
117.Where(c => IsCommandVisibleForConsumer(c.command.Visibility, includeDisabledCommands) && IsCommandVisibleToConsumer(c.command.State, includeDisabledCommands)) 126State = c.command.State, 229return string.Equals(command.State, "Enabled", StringComparison.OrdinalIgnoreCase) &&
Mcp\Tools\ListResourcesTool.cs (2)
309ResourceSnapshotMapper.IsCommandVisibleToConsumer(command.State, includeDisabledCommands: true)) 315State = string.Equals(command.State, KnownCommandState.Enabled, StringComparison.OrdinalIgnoreCase)