1 write to State
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
250
State
= state;
12 references to State
Aspire.Dashboard (12)
Components\Controls\ResourceActions.razor.cs (1)
78
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
502
_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
568
if (command.IsHighlighted && command.
State
!= CommandViewModelState.Hidden)
Components_Controls_ResourceActions_razor.g.cs (1)
298
highlightedCommand.
State
== CommandViewModelState.Disabled || IsCommandExecuting(Resource, highlightedCommand)
Components_Pages_ConsoleLogs_razor.g.cs (1)
596
command.
State
== CommandViewModelState.Disabled || DashboardCommandExecutor.IsExecuting(selectedResource.Name, command.Name)
Mcp\AspireResourceMcpTools.cs (3)
163
if (command.
State
== CommandViewModelState.Hidden)
168
if (command.
State
== CommandViewModelState.Disabled)
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\ResourceMenuBuilder.cs (2)
288
.Where(c => c.
State
!= CommandViewModelState.Hidden)
344
IsDisabled = command.
State
== CommandViewModelState.Disabled || isCommandExecuting(resource, command)
Model\TelemetryExportService.cs (1)
760
.Where(c => c.
State
== CommandViewModelState.Enabled)