6 references to Enabled
Aspire.Dashboard (4)
Mcp\AspireResourceMcpTools.cs (1)
170
if (command.Name == "resource-restart" && resource.Commands.Any(c => c.Name == "resource-start" && c.State == CommandViewModelState.
Enabled
))
Model\Assistant\AIHelpers.cs (1)
189
["commands"] = resource.Commands.Where(cmd => cmd.State == CommandViewModelState.
Enabled
).Select(cmd => new
Model\TelemetryExportService.cs (1)
760
.Where(c => c.State == CommandViewModelState.
Enabled
)
ServiceClient\Partials.cs (1)
127
ResourceCommandState.Enabled => CommandViewModelState.
Enabled
,
Aspire.Dashboard.Components.Tests (2)
Pages\ConsoleLogsTests.cs (2)
593
commands: [new CommandViewModel("test-name", CommandViewModelState.
Enabled
, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
657
commands: [new CommandViewModel("test-name", CommandViewModelState.
Enabled
, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);