16 references to RestartCommand
Aspire.Dashboard (5)
Components\Controls\TerminalDisconnectedBanner.razor.cs (2)
94c.Name is CommandViewModel.RestartCommand or CommandViewModel.StartCommand); 96.ThenBy(c => c.Name != CommandViewModel.RestartCommand).FirstOrDefault();
Components\Layout\ResourcesLayout.razor.cs (2)
1880KnownResourceState.Running => [CommandViewModel.StopCommand, CommandViewModel.RestartCommand], 1898c.Name is not (CommandViewModel.StartCommand or CommandViewModel.StopCommand or CommandViewModel.RestartCommand))
Model\ResourceViewModel.cs (1)
313private 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)] 107displayName: "shell", commands: [CreateCommand(CommandViewModel.RestartCommand)]); 119commands: [CreateCommand(CommandViewModel.RestartCommand)], state: KnownResourceState.Finished, properties: new() 134toasts.WaitForAssertion(() => Assert.Equal($"shell \"{CommandViewModel.RestartCommand}\" succeeded", 145commands: [CreateCommand(CommandViewModel.RestartCommand)]); 161[CreateCommand(CommandViewModel.RestartCommand, CommandViewModelState.Hidden)]); 169commands: [CreateCommand(CommandViewModel.RestartCommand, CommandViewModelState.Disabled)]))]); 173commands: [CreateCommand(CommandViewModel.RestartCommand, CommandViewModelState.Disabled),
Layout\ResourcesLayoutTests.cs (1)
1753Command(CommandViewModel.RestartCommand, CommandViewModelState.Enabled, false)
Aspire.Dashboard.Tests (1)
Model\DashboardCommandExecutorTests.cs (1)
47[InlineData(CommandViewModel.RestartCommand, false)]