1 instantiation of CommandViewModel
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
113return 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)
56private readonly List<CommandViewModel> _highlightedCommands = new();
Components\Pages\ConsoleLogs.razor.cs (2)
106private readonly List<CommandViewModel> _highlightedCommands = new(); 373private async Task ExecuteResourceCommandAsync(CommandViewModel command)
Components\Pages\Resources.razor.cs (1)
630private async Task ExecuteResourceCommandAsync(ResourceViewModel resource, CommandViewModel command)
Model\DashboardCommandExecutor.cs (2)
31public async Task ExecuteAsync(ResourceViewModel resource, CommandViewModel command, Func<ResourceViewModel, string> getResourceName) 62public async Task ExecuteAsyncCore(ResourceViewModel resource, CommandViewModel command, Func<ResourceViewModel, string> getResourceName)
Model\ResourceMenuItems.cs (2)
32Func<CommandViewModel, Task> commandSelected, 33Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting,
ResourceService\DashboardClient.cs (1)
549public async Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType, CommandViewModel command, CancellationToken cancellationToken)
ResourceService\IDashboardClient.cs (1)
47Task<ResourceCommandResponseViewModel> ExecuteResourceCommandAsync(string resourceName, string resourceType, CommandViewModel command, CancellationToken cancellationToken);
ResourceService\Partials.cs (1)
107ImmutableArray<CommandViewModel> GetCommands()