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