26 references to CommandViewModelState
Aspire.Dashboard (12)
Components\Controls\ResourceActions.razor.cs (1)
68
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
784
_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
566
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Model\ResourceMenuBuilder.cs (2)
260
.Where(c => c.State !=
CommandViewModelState
.Hidden)
314
IsDisabled = _dashboardClient.IsReadOnly || command.State ==
CommandViewModelState
.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
288
public
CommandViewModelState
State { get; }
298
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, ImmutableArray<InteractionInput> argumentInputs, bool isHighlighted, string iconName, IconVariant iconVariant)
Model\TelemetryExportService.cs (1)
770
.Where(c => c.State ==
CommandViewModelState
.Enabled)
ServiceClient\Partials.cs (4)
125
static
CommandViewModelState
MapState(ResourceCommandState state)
129
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
130
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
131
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,
Aspire.Dashboard.Components.Tests (7)
Controls\ResourceDetailsTests.cs (3)
733
CommandViewModelState
.Enabled,
779
CommandViewModelState
.Enabled,
825
CommandViewModelState
.Enabled,
Pages\ConsoleLogsTests.cs (3)
793
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
860
CommandViewModelState
.Enabled,
902
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
159
CommandViewModelState
.Enabled,
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
834
CommandViewModelState
.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
242
CommandViewModelState
.Enabled,
Model\ResourceMenuBuilderTests.cs (5)
290
CommandViewModelState
.Enabled,
300
CommandViewModelState
.Enabled,
337
CommandViewModelState
.Enabled,
381
CommandViewModelState
.Enabled,
423
CommandViewModelState
.Enabled,