1 write to State
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
332
State
= state;
27 references to State
Aspire.Dashboard (27)
Components\Controls\MissingParametersPanel.razor.cs (2)
120
command.
State
!= CommandViewModelState.Hidden);
178
editor.Command.
State
== CommandViewModelState.Disabled ||
Components\Controls\ParameterOverview.razor.cs (4)
57
SetCommand.
State
== CommandViewModelState.Disabled ||
61
DeleteCommand.
State
== CommandViewModelState.Disabled ||
84
command.
State
!= CommandViewModelState.Hidden);
88
command.
State
!= CommandViewModelState.Hidden);
Components\Controls\ResourceActions.razor.cs (1)
57
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden).Take(MaxHighlightedCount));
Components\Controls\TerminalDisconnectedBanner.razor.cs (3)
93
var commands = resource.Commands.Where(c => c.
State
!= CommandViewModelState.Hidden &&
95
return commands.OrderBy(c => c.
State
!= CommandViewModelState.Enabled)
100
private bool RestartDisabled => _executing || RestartCommand is not {
State
: CommandViewModelState.Enabled } command ||
Components\Layout\ResourcesLayout.razor.cs (5)
1866
.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden)
1873
c.
State
!= CommandViewModelState.Hidden).Take(1)
1886
.SelectMany(name => resource.Commands.Where(c => c.Name == name && c.
State
!= CommandViewModelState.Hidden))
1897
.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden &&
1959
DashboardClient.IsReadOnly || command.
State
== CommandViewModelState.Disabled || DashboardCommandExecutor.IsExecuting(resource.Name, command.Name);
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
573
_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Legacy\Pages\Resources.razor.cs (1)
630
if (command.IsHighlighted && command.
State
!= CommandViewModelState.Hidden)
Components\Legacy\Pages\Terminals.razor.cs (1)
259
_highlightedCommands.AddRange(resource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden)
Components\Pages\ConsoleLogs.razor.cs (1)
677
_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
655
if (command.IsHighlighted && command.
State
!= CommandViewModelState.Hidden)
Components\Pages\Terminals.razor.cs (1)
289
_highlightedCommands.AddRange(resource.Commands.Where(c => c.IsHighlighted && c.
State
!= CommandViewModelState.Hidden)
Model\DashboardCommandExecutor.cs (1)
62
if (command is not {
State
: CommandViewModelState.Enabled } ||
Model\ResourceMenuBuilder.cs (4)
313
.Where(command => command.
State
!= CommandViewModelState.Hidden)
341
!resource.IsParameter && !_dashboardClient.IsReadOnly && command.
State
== CommandViewModelState.Enabled && !isCommandExecuting(resource, command);
360
.Where(c => c.
State
!= CommandViewModelState.Hidden)
409
_dashboardClient.IsReadOnly || command.
State
== CommandViewModelState.Disabled || isCommandExecuting(resource, command));
Model\TelemetryExportService.cs (1)
773
.Where(c => c.
State
== CommandViewModelState.Enabled)