3 references to RestartCommand
Aspire.Dashboard (3)
Mcp\AspireResourceMcpTools.cs (2)
170if (command.Name == CommandViewModel.RestartCommand && resource.Commands.Any(c => c.Name == CommandViewModel.StartCommand && c.State == CommandViewModelState.Enabled)) 172throw new McpProtocolException($"Resource '{resourceName}' is stopped. Use the '{CommandViewModel.StartCommand}' command instead of '{CommandViewModel.RestartCommand}'.", McpErrorCode.InvalidParams);
Model\ResourceViewModel.cs (1)
231private static readonly string[] s_knownResourceCommands = [StartCommand, StopCommand, RestartCommand];