14 instantiations of ConsoleInteractionService
aspire (2)
Program.cs (2)
1353var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx); 1370return new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx);
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (1)
603var interactionService = new ConsoleInteractionService(
Commands\NewCommandTests.cs (1)
2984var consoleInteractionService = new ConsoleInteractionService(
Commands\RunCommandTests.cs (2)
2402var interactionService = new ConsoleInteractionService( 2841var 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()); 849var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 878var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext());
Interaction\ExtensionInteractionServiceTests.cs (4)
36var consoleInteractionService = new ConsoleInteractionService( 77var consoleInteractionService = new ConsoleInteractionService( 224var consoleInteractionService = new ConsoleInteractionService( 256var consoleInteractionService = new ConsoleInteractionService(
Utils\CliTestHelper.cs (1)
521return new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferContext);
102 references to ConsoleInteractionService
aspire (12)
Commands\AgentInitCommand.cs (8)
64ConsoleInteractionService.AllChoice, 65ConsoleInteractionService.NoneChoice), 73ConsoleInteractionService.AllChoice, 74ConsoleInteractionService.NoneChoice), 568string.Equals(requestedSkills, ConsoleInteractionService.AllChoice, StringComparison.OrdinalIgnoreCase) || 569string.Equals(requestedSkills, ConsoleInteractionService.NoneChoice, StringComparison.OrdinalIgnoreCase)) 605if (string.Equals(value, ConsoleInteractionService.NoneChoice, StringComparison.OrdinalIgnoreCase)) 611string.Equals(value, ConsoleInteractionService.AllChoice, StringComparison.OrdinalIgnoreCase))
Commands\ConfigCommand.cs (1)
480if (InteractionService is ConsoleInteractionService consoleService)
Interaction\ExtensionInteractionService.cs (2)
33private readonly ConsoleInteractionService _consoleInteractionService; 48public ExtensionInteractionService(ConsoleInteractionService consoleInteractionService, IExtensionBackchannel backchannel, bool extensionPromptEnabled, ILogger<ExtensionInteractionService> logger)
Program.cs (1)
1353var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferCtx);
Aspire.Cli.Tests (90)
Commands\DashboardRunCommandTests.cs (1)
603var interactionService = new ConsoleInteractionService(
Commands\NewCommandTests.cs (1)
2984var consoleInteractionService = new ConsoleInteractionService(
Commands\RunCommandTests.cs (2)
2402var interactionService = new ConsoleInteractionService( 2841var consoleInteractionService = new ConsoleInteractionService(consoleEnvironment, executionContext, hostEnvironment, processPathProvider, loggerFactory, logBufferContext);
Interaction\ConsoleInteractionServiceTests.cs (82)
29private static ConsoleInteractionService CreateInteractionService(IAnsiConsole console, CliExecutionContext? executionContext = null, ICliHostEnvironment? hostEnvironment = null, ILoggerFactory? loggerFactory = null) 40var interactionService = CreateInteractionService(AnsiConsole.Console); 52var interactionService = CreateInteractionService(AnsiConsole.Console); 72var interactionService = CreateInteractionService(console); 96var interactionService = CreateInteractionService(console); 120var interactionService = CreateInteractionService(console); 150var interactionService = CreateInteractionService(console); 173var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 192var interactionService = CreateInteractionService(console, executionContext); 224var interactionService = CreateInteractionService(console); 275var interactionService = CreateInteractionService(console, executionContext); 298var interactionService = CreateInteractionService(console, CreateExecutionContext(debugMode: true)); 328var interactionService = CreateInteractionService(console, CreateExecutionContext(consoleLogLevel: consoleLogLevel), loggerFactory: loggerFactory); 349var interactionService = CreateInteractionService(AnsiConsole.Console, CreateExecutionContext(consoleLogLevel: LogLevel.None)); 369var interactionService = CreateInteractionService(console, executionContext); 386var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 398var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 411var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 424var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 444var interactionService = CreateInteractionService(console); 476var interactionService = CreateInteractionService(console); 513var interactionService = CreateInteractionService(console, executionContext); 524var interactionService = CreateInteractionService(AnsiConsole.Console); 535var interactionService = CreateInteractionService(AnsiConsole.Console, executionContext); 546var interactionService = CreateInteractionService(AnsiConsole.Console, executionContext); 553private static int GetInStatus(ConsoleInteractionService service) 555var field = typeof(ConsoleInteractionService).GetField("_inStatus", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); 572var interactionService = CreateInteractionService(console); 586private static (ConsoleInteractionService InteractionService, StringBuilder Output) CreateInteractionServiceWithOutputCapture() 682var interactionService = CreateInteractionService(console); 711var interactionService = CreateInteractionService(console, CreateExecutionContext(logFilePath: logFilePath)); 739var interactionService = CreateInteractionService(console, CreateExecutionContext(logFilePath: logFilePath)); 761var interactionService = CreateInteractionService(console); 784var interactionService = CreateInteractionService(console); 813var interactionService = CreateInteractionService(console); 849var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 878var interactionService = new ConsoleInteractionService(consoleEnvironment, executionContext, TestHelpers.CreateInteractiveHostEnvironment(), new EnvironmentProcessPathProvider(), NullLoggerFactory.Instance, new ConsoleLogBufferContext()); 898var interactionService = CreateInteractionService(console); 924var interactionService = CreateInteractionService(console); 950var interactionService = CreateInteractionService(console); 975var interactionService = CreateInteractionService(console); 1002var interactionService = CreateInteractionService(console, executionContext); 1030var interactionService = CreateInteractionService(console, executionContext); 1057var interactionService = CreateInteractionService(console, executionContext); 1085var interactionService = CreateInteractionService(console, executionContext); 1112var interactionService = CreateInteractionService(console, executionContext); 1141var interactionService = CreateInteractionService(console, executionContext); 1169var interactionService = CreateInteractionService(console); 1257var interactionService = CreateInteractionService(console); 1275var interactionService = CreateInteractionService(console); 1293var interactionService = CreateInteractionService(console); 1310var interactionService = CreateInteractionService(console); 1323var interactionService = CreateInteractionService(console); 1341var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1354var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1370var interactionService = CreateInteractionService(console); 1386var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1402var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1416var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1433var interactionService = CreateInteractionService(console); 1451var result = ConsoleInteractionService.MatchChoices("alpha,alpha,beta", choices, c => c); 1464var result = ConsoleInteractionService.MatchChoices("all", choices, c => c); 1475var result = ConsoleInteractionService.MatchChoices("none", choices, c => c); 1486var result = ConsoleInteractionService.MatchChoices("alpha,nonexistent", choices, c => c); 1496var result = ConsoleInteractionService.MatchChoice("id1", choices, c => c.Display); 1559var interactionService = CreateInteractionService(console); 1572var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1594var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1620var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1647var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1679var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1705var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1723var interactionService = CreateInteractionService(console); 1741var interactionService = CreateInteractionService(console); 1796var result = ConsoleInteractionService.MatchChoices("alpha,BETA", choices, c => c); 1809var result = ConsoleInteractionService.MatchChoice("ALPHA", choices, c => c); 1818var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1830var interactionService = CreateInteractionService(AnsiConsole.Console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1847var interactionService = CreateInteractionService(console); 1866var interactionService = CreateInteractionService(console); 1885var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment()); 1904var interactionService = CreateInteractionService(console, hostEnvironment: TestHelpers.CreateNonInteractiveHostEnvironment());
Interaction\ExtensionInteractionServiceTests.cs (4)
36var consoleInteractionService = new ConsoleInteractionService( 77var consoleInteractionService = new ConsoleInteractionService( 224var consoleInteractionService = new ConsoleInteractionService( 256var consoleInteractionService = new ConsoleInteractionService(