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