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