1 instantiation of CommandViewModel
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
110
.Select(c => new
CommandViewModel
(c.Name, MapState(c.State), c.DisplayName, c.DisplayDescription, c.ConfirmationMessage, c.Parameter, c.IsHighlighted, c.IconName, MapIconVariant(c.IconVariant)))
10 references to CommandViewModel
Aspire.Dashboard (10)
Components\Controls\ResourceActions.razor.cs (2)
56
private readonly List<
CommandViewModel
> _highlightedCommands = new();
136
var icon = (!string.IsNullOrEmpty(command.IconName) &&
CommandViewModel
.ResolveIconName(command.IconName, command.IconVariant) is { } i) ? i : null;
Components\Pages\ConsoleLogs.razor.cs (3)
91
private readonly List<
CommandViewModel
> _highlightedCommands = new();
296
var icon = (!string.IsNullOrEmpty(command.IconName) &&
CommandViewModel
.ResolveIconName(command.IconName, command.IconVariant) is { } i) ? i : null;
317
private async Task ExecuteResourceCommandAsync(
CommandViewModel
command)
Components\Pages\Resources.razor.cs (1)
393
private async Task ExecuteResourceCommandAsync(ResourceViewModel resource,
CommandViewModel
command)
Model\DashboardCommandExecutor.cs (1)
19
public async Task ExecuteAsync(ResourceViewModel resource,
CommandViewModel
command, Func<ResourceViewModel, string> getResourceName)
ResourceService\DashboardClient.cs (1)
527
public async Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType,
CommandViewModel
command, CancellationToken cancellationToken)
ResourceService\IDashboardClient.cs (1)
45
Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType,
CommandViewModel
command, CancellationToken cancellationToken);
ResourceService\Partials.cs (1)
107
ImmutableArray<
CommandViewModel
> GetCommands()