12 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
440
builder.Services.AddSingleton(s => new
ConsoleEnvironment
(
Aspire.Cli.Tests (11)
Commands\AgentTelemetryCommandTests.cs (1)
149
=>
new
(
Commands\DashboardRunCommandTests.cs (1)
661
new
ConsoleEnvironment
(console, console, TextReader.Null),
Commands\RunCommandTests.cs (1)
3129
new
ConsoleEnvironment
(console, console, TextReader.Null),
Interaction\ConsoleInteractionServiceTests.cs (3)
32
var consoleEnvironment = new
ConsoleEnvironment
(console, console, TextReader.Null);
892
var consoleEnvironment = new
ConsoleEnvironment
(stdoutConsole, stderrConsole, TextReader.Null);
921
var consoleEnvironment = new
ConsoleEnvironment
(stdoutConsole, stderrConsole, TextReader.Null);
Interaction\ExtensionInteractionServiceTests.cs (4)
38
new
ConsoleEnvironment
(console, console, TextReader.Null),
281
new
ConsoleEnvironment
(console, console, TextReader.Null),
464
new
ConsoleEnvironment
(console, console, TextReader.Null),
496
new
ConsoleEnvironment
(console, console, TextReader.Null),
Utils\CliTestHelper.cs (1)
409
return new
ConsoleEnvironment
(outConsole, errorConsole, TextReader.Null);
28 references to ConsoleEnvironment
aspire (16)
Commands\AgentTelemetryCommand.cs (2)
38
private readonly
ConsoleEnvironment
_console;
93
AgentTelemetryHook hook, IEnvironment environment,
ConsoleEnvironment
console)
Commands\LsCommand.cs (2)
23
private readonly
ConsoleEnvironment
_consoleEnvironment;
45
ConsoleEnvironment
consoleEnvironment,
ConsoleEnvironment.cs (1)
14
/// Initializes a new instance of the <see cref="
ConsoleEnvironment
"/> class.
Interaction\BannerService.cs (1)
45
public BannerService(
ConsoleEnvironment
consoleEnvironment, CliExecutionContext executionContext)
Interaction\ConsoleInteractionService.cs (1)
87
public ConsoleInteractionService(
ConsoleEnvironment
consoleEnvironment, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IProcessPathProvider processPathProvider, ILoggerFactory loggerFactory, ConsoleLogBufferContext logBufferContext)
Program.cs (9)
444
builder.Services.AddSingleton(s => s.GetRequiredService<
ConsoleEnvironment
>().Out);
912
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();
941
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();
1529
var
consoleEnvironment = provider.GetRequiredService<
ConsoleEnvironment
>();
1547
var
consoleEnvironment = provider.GetRequiredService<
ConsoleEnvironment
>();
Aspire.Cli.Tests (12)
Commands\AgentTelemetryCommandTests.cs (1)
148
private static
ConsoleEnvironment
CreateConsole(TextReader input, TextWriter output, TextWriter error)
Commands\NewCommandTests.cs (1)
3022
sp.GetRequiredService<
ConsoleEnvironment
>(),
Commands\RunCommandTests.cs (2)
3561
var
consoleEnvironment = sp.GetRequiredService<
ConsoleEnvironment
>();
Interaction\ConsoleInteractionServiceTests.cs (3)
32
var
consoleEnvironment = new ConsoleEnvironment(console, console, TextReader.Null);
892
var
consoleEnvironment = new ConsoleEnvironment(stdoutConsole, stderrConsole, TextReader.Null);
921
var
consoleEnvironment = new ConsoleEnvironment(stdoutConsole, stderrConsole, TextReader.Null);
Utils\CliTestHelper.cs (5)
135
services.AddSingleton(sp => sp.GetRequiredService<
ConsoleEnvironment
>().Out);
204
services.AddSingleton(sp => new TrayProtocolOutput(() => sp.GetRequiredService<
ConsoleEnvironment
>().Out.Profile.Out.Writer));
401
public Func<IServiceProvider,
ConsoleEnvironment
> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) =>
533
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();