1 instantiation of CommandViewModel
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
113
return new
CommandViewModel
(c.Name, MapState(c.State), displayName, displayDescription, c.ConfirmationMessage, c.Parameter, c.IsHighlighted, c.IconName, MapIconVariant(c.IconVariant));
11 references to CommandViewModel
Aspire.Dashboard (11)
Components\Controls\ResourceActions.razor.cs (1)
56
private readonly List<
CommandViewModel
> _highlightedCommands = new();
Components\Pages\ConsoleLogs.razor.cs (2)
106
private readonly List<
CommandViewModel
> _highlightedCommands = new();
373
private async Task ExecuteResourceCommandAsync(
CommandViewModel
command)
Components\Pages\Resources.razor.cs (1)
630
private async Task ExecuteResourceCommandAsync(ResourceViewModel resource,
CommandViewModel
command)
Model\DashboardCommandExecutor.cs (2)
31
public async Task ExecuteAsync(ResourceViewModel resource,
CommandViewModel
command, Func<ResourceViewModel, string> getResourceName)
62
public async Task ExecuteAsyncCore(ResourceViewModel resource,
CommandViewModel
command, Func<ResourceViewModel, string> getResourceName)
Model\ResourceMenuItems.cs (2)
32
Func<
CommandViewModel
, Task> commandSelected,
33
Func<ResourceViewModel,
CommandViewModel
, bool> isCommandExecuting,
ResourceService\DashboardClient.cs (1)
549
public async Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType,
CommandViewModel
command, CancellationToken cancellationToken)
ResourceService\IDashboardClient.cs (1)
47
Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType,
CommandViewModel
command, CancellationToken cancellationToken);
ResourceService\Partials.cs (1)
107
ImmutableArray<
CommandViewModel
> GetCommands()