1 write to State
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
304State = state;
7 references to State
Aspire.Dashboard (7)
Components\Controls\ResourceActions.razor.cs (1)
58_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
570_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
623if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Components\Pages\Terminals.razor.cs (1)
259_highlightedCommands.AddRange(resource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden)
Model\ResourceMenuBuilder.cs (2)
288.Where(c => c.State != CommandViewModelState.Hidden) 342IsDisabled = _dashboardClient.IsReadOnly || command.State == CommandViewModelState.Disabled || isCommandExecuting(resource, command)
Model\TelemetryExportService.cs (1)
772.Where(c => c.State == CommandViewModelState.Enabled)