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