14 instantiations of ConsoleInteractionService
aspire (2)
Program.cs (2)
1445var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx); 1462return new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx);
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (1)
659var interactionService = new ConsoleInteractionService(
Commands\NewCommandTests.cs (1)
2984var consoleInteractionService = new ConsoleInteractionService(
Commands\RunCommandTests.cs (2)
3082var interactionService = new ConsoleInteractionService( 3521var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferContext);
Interaction\ConsoleInteractionServiceTests.cs (3)
33return new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment ?? TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), loggerFactory ?? NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 893var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 922var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext());
Interaction\ExtensionInteractionServiceTests.cs (4)
37var consoleInteractionService = new ConsoleInteractionService( 280var consoleInteractionService = new ConsoleInteractionService( 463var consoleInteractionService = new ConsoleInteractionService( 495var consoleInteractionService = new ConsoleInteractionService(
Utils\CliTestHelper.cs (1)
527return new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferContext);
104 references to ConsoleInteractionService
aspire (12)
Commands\AgentInitCommand.cs (8)
65ConsoleInteractionService.AllChoice, 66ConsoleInteractionService.NoneChoice), 74ConsoleInteractionService.AllChoice, 75ConsoleInteractionService.NoneChoice), 536string.Equals(requestedSkills, ConsoleInteractionService.AllChoice, StringComparison.OrdinalIgnoreCase) || 537string.Equals(requestedSkills, ConsoleInteractionService.NoneChoice, StringComparison.OrdinalIgnoreCase)) 573if (string.Equals(value, ConsoleInteractionService.NoneChoice, StringComparison.OrdinalIgnoreCase)) 579string.Equals(value, ConsoleInteractionService.AllChoice, StringComparison.OrdinalIgnoreCase))
Commands\ConfigCommand.cs (1)
480if (InteractionService is ConsoleInteractionService consoleService)
Interaction\ExtensionInteractionService.cs (2)
39private readonly ConsoleInteractionService _consoleInteractionService; 54public ExtensionInteractionService(ConsoleInteractionService consoleInteractionService, IExtensionBackchannel backchannel, bool extensionPromptEnabled, ILogger<ExtensionInteractionService> logger)
Program.cs (1)
1445var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx);
Aspire.Cli.Tests (92)
Commands\DashboardRunCommandTests.cs (1)
659var interactionService = new ConsoleInteractionService(
Commands\NewCommandTests.cs (1)
2984var consoleInteractionService = new ConsoleInteractionService(
Commands\RunCommandTests.cs (2)
3082var interactionService = new ConsoleInteractionService( 3521var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferContext);
Interaction\ConsoleInteractionServiceTests.cs (84)
29private static ConsoleInteractionService CreateInteractionService(IAnsiConsole console, CliExecutionContext? executionContext = null, ICliHostEnvironment? hostEnvironment = null, ILoggerFactory? loggerFactory = null) 40var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 65var interactionService = CreateInteractionService(console); 84var interactionService = CreateInteractionService(AnsiConsole.Console); 96var interactionService = CreateInteractionService(AnsiConsole.Console); 116var interactionService = CreateInteractionService(console); 140var interactionService = CreateInteractionService(console); 164var interactionService = CreateInteractionService(console); 194var interactionService = CreateInteractionService(console); 217var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 236var interactionService = CreateInteractionService(console, executionContext); 268var interactionService = CreateInteractionService(console); 319var interactionService = CreateInteractionService(console, executionContext); 342var interactionService = CreateInteractionService(console, CreateExecutionContext(debugMode: true)); 372var interactionService = CreateInteractionService(console, CreateExecutionContext(consoleLogLevel: consoleLogLevel), loggerFactory: loggerFactory); 393var interactionService = CreateInteractionService(AnsiConsole.Console, CreateExecutionContext(consoleLogLevel: LogLevel.None)); 413var interactionService = CreateInteractionService(console, executionContext); 430var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 442var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 455var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 468var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 488var interactionService = CreateInteractionService(console); 520var interactionService = CreateInteractionService(console); 557var interactionService = CreateInteractionService(console, executionContext); 568var interactionService = CreateInteractionService(AnsiConsole.Console); 579var interactionService = CreateInteractionService(AnsiConsole.Console, executionContext); 590var interactionService = CreateInteractionService(AnsiConsole.Console, executionContext); 597private static int GetInStatus(ConsoleInteractionService service) 599var field = typeof(ConsoleInteractionService).GetField("_inStatus", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); 616var interactionService = CreateInteractionService(console); 630private static (ConsoleInteractionService InteractionService, StringBuilder Output) CreateInteractionServiceWithOutputCapture() 726var interactionService = CreateInteractionService(console); 755var interactionService = CreateInteractionService(console, CreateExecutionContext(logFilePath: logFilePath)); 783var interactionService = CreateInteractionService(console, CreateExecutionContext(logFilePath: logFilePath)); 805var interactionService = CreateInteractionService(console); 828var interactionService = CreateInteractionService(console); 857var interactionService = CreateInteractionService(console); 893var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 922var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 942var interactionService = CreateInteractionService(console); 968var interactionService = CreateInteractionService(console); 994var interactionService = CreateInteractionService(console); 1019var interactionService = CreateInteractionService(console); 1046var interactionService = CreateInteractionService(console, executionContext); 1074var interactionService = CreateInteractionService(console, executionContext); 1101var interactionService = CreateInteractionService(console, executionContext); 1129var interactionService = CreateInteractionService(console, executionContext); 1156var interactionService = CreateInteractionService(console, executionContext); 1185var interactionService = CreateInteractionService(console, executionContext); 1213var interactionService = CreateInteractionService(console); 1301var interactionService = CreateInteractionService(console); 1319var interactionService = CreateInteractionService(console); 1337var interactionService = CreateInteractionService(console); 1354var interactionService = CreateInteractionService(console); 1367var interactionService = CreateInteractionService(console); 1385var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1398var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1414var interactionService = CreateInteractionService(console); 1430var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1446var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1460var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1477var interactionService = CreateInteractionService(console); 1495var result = ConsoleInteractionService.MatchChoices("alpha,alpha,beta", choices, c => c); 1508var result = ConsoleInteractionService.MatchChoices("all", choices, c => c); 1519var result = ConsoleInteractionService.MatchChoices("none", choices, c => c); 1530var result = ConsoleInteractionService.MatchChoices("alpha,nonexistent", choices, c => c); 1540var result = ConsoleInteractionService.MatchChoice("id1", choices, c => c.Display); 1603var interactionService = CreateInteractionService(console); 1616var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1638var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1664var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1691var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1723var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1749var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1767var interactionService = CreateInteractionService(console); 1785var interactionService = CreateInteractionService(console); 1840var result = ConsoleInteractionService.MatchChoices("alpha,BETA", choices, c => c); 1853var result = ConsoleInteractionService.MatchChoice("ALPHA", choices, c => c); 1862var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1874var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1891var interactionService = CreateInteractionService(console); 1910var interactionService = CreateInteractionService(console); 1929var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1948var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment());
Interaction\ExtensionInteractionServiceTests.cs (4)
37var consoleInteractionService = new ConsoleInteractionService( 280var consoleInteractionService = new ConsoleInteractionService( 463var consoleInteractionService = new ConsoleInteractionService( 495var consoleInteractionService = new ConsoleInteractionService(