12 references to RestartCommand
Aspire.Dashboard (3)
Components\Controls\TerminalDisconnectedBanner.razor.cs (2)
94
c.Name is CommandViewModel.
RestartCommand
or CommandViewModel.StartCommand);
96
.ThenBy(c => c.Name != CommandViewModel.
RestartCommand
).FirstOrDefault();
Model\ResourceViewModel.cs (1)
312
private static readonly string[] s_knownResourceCommands = [StartCommand, StopCommand,
RestartCommand
, RebuildCommand, SetParameterCommand, DeleteParameterCommand];
Aspire.Dashboard.Components.Tests (9)
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),