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