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)
56private readonly List<CommandViewModel> _highlightedCommands = new(); 136var icon = (!string.IsNullOrEmpty(command.IconName) && CommandViewModel.ResolveIconName(command.IconName, command.IconVariant) is { } i) ? i : null;
Components\Pages\ConsoleLogs.razor.cs (3)
91private readonly List<CommandViewModel> _highlightedCommands = new(); 296var icon = (!string.IsNullOrEmpty(command.IconName) && CommandViewModel.ResolveIconName(command.IconName, command.IconVariant) is { } i) ? i : null; 317private async Task ExecuteResourceCommandAsync(CommandViewModel command)
Components\Pages\Resources.razor.cs (1)
393private async Task ExecuteResourceCommandAsync(ResourceViewModel resource, CommandViewModel command)
Model\DashboardCommandExecutor.cs (1)
19public async Task ExecuteAsync(ResourceViewModel resource, CommandViewModel command, Func<ResourceViewModel, string> getResourceName)
ResourceService\DashboardClient.cs (1)
527public async Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType, CommandViewModel command, CancellationToken cancellationToken)
ResourceService\IDashboardClient.cs (1)
45Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType, CommandViewModel command, CancellationToken cancellationToken);
ResourceService\Partials.cs (1)
107ImmutableArray<CommandViewModel> GetCommands()