17 references to Commands
Aspire.Dashboard (14)
Components\Controls\ResourceActions.razor.cs (1)
28public required IStringLocalizer<Commands> CommandsLoc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
94public required IStringLocalizer<Commands> CommandsLoc { get; init; }
Model\DashboardCommandExecutor.cs (1)
20IStringLocalizer<Commands> commandsLoc,
Model\ResourceMenuItems.cs (2)
33IStringLocalizer<Commands> commandsLoc, 180private static void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IStringLocalizer<Resources.Resources> loc, IStringLocalizer<Commands> commandsLoc, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting)
Model\ResourceViewModel.cs (8)
252public string GetDisplayName(IStringLocalizer<Commands> loc) 256KnownResourceCommands.StartCommand => loc[nameof(Commands.StartCommandDisplayName)], 257KnownResourceCommands.StopCommand => loc[nameof(Commands.StopCommandDisplayName)], 258KnownResourceCommands.RestartCommand => loc[nameof(Commands.RestartCommandDisplayName)], 263public string? GetDisplayDescription(IStringLocalizer<Commands> loc) 267KnownResourceCommands.StartCommand => loc[nameof(Commands.StartCommandDisplayDescription)], 268KnownResourceCommands.StopCommand => loc[nameof(Commands.StopCommandDisplayDescription)], 269KnownResourceCommands.RestartCommand => loc[nameof(Commands.RestartCommandDisplayDescription)],
Resources\Commands.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.Commands", typeof(Commands).Assembly);
Aspire.Dashboard.Tests (3)
Model\ResourceMenuItemsTests.cs (3)
38new TestStringLocalizer<Commands>(), 89new TestStringLocalizer<Commands>(), 140new TestStringLocalizer<Commands>(),