16 references to RestartCommand
Aspire.Dashboard (5)
Components\Controls\TerminalDisconnectedBanner.razor.cs (2)
94
c.Name is CommandViewModel.
RestartCommand
or CommandViewModel.StartCommand);
96
.ThenBy(c => c.Name != CommandViewModel.
RestartCommand
).FirstOrDefault();
Components\Layout\ResourcesLayout.razor.cs (2)
1880
KnownResourceState.Running => [CommandViewModel.StopCommand, CommandViewModel.
RestartCommand
],
1898
c.Name is not (CommandViewModel.StartCommand or CommandViewModel.StopCommand or CommandViewModel.
RestartCommand
))
Model\ResourceViewModel.cs (1)
313
private static readonly string[] s_knownResourceCommands = [StartCommand, StopCommand,
RestartCommand
, RebuildCommand, SetParameterCommand, DeleteParameterCommand];
Aspire.Dashboard.Components.Tests (10)
Controls\TerminalDisconnectedBannerTests.cs (9)
57
[InlineData(CommandViewModel.
RestartCommand
, ResourceCommandResponseKind.Succeeded)]
59
[InlineData(CommandViewModel.
RestartCommand
, ResourceCommandResponseKind.Cancelled)]
107
displayName: "shell", commands: [CreateCommand(CommandViewModel.
RestartCommand
)]);
119
commands: [CreateCommand(CommandViewModel.
RestartCommand
)], state: KnownResourceState.Finished, properties: new()
134
toasts.WaitForAssertion(() => Assert.Equal($"shell \"{CommandViewModel.
RestartCommand
}\" succeeded",
145
commands: [CreateCommand(CommandViewModel.
RestartCommand
)]);
161
[CreateCommand(CommandViewModel.
RestartCommand
, CommandViewModelState.Hidden)]);
169
commands: [CreateCommand(CommandViewModel.
RestartCommand
, CommandViewModelState.Disabled)]))]);
173
commands: [CreateCommand(CommandViewModel.
RestartCommand
, CommandViewModelState.Disabled),
Layout\ResourcesLayoutTests.cs (1)
1753
Command(CommandViewModel.
RestartCommand
, CommandViewModelState.Enabled, false)
Aspire.Dashboard.Tests (1)
Model\DashboardCommandExecutorTests.cs (1)
47
[InlineData(CommandViewModel.
RestartCommand
, false)]