13 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
456
builder.Services.AddSingleton(s => new
ConsoleEnvironment
(
Aspire.Cli.Tests (12)
Commands\AgentTelemetryCommandTests.cs (1)
149
=>
new
(
Commands\DashboardRunCommandTests.cs (1)
661
new
ConsoleEnvironment
(console, console, TextReader.Null),
Commands\RunCommandTests.cs (1)
3140
new
ConsoleEnvironment
(console, console, TextReader.Null),
Interaction\ConsoleInteractionServiceTests.cs (4)
33
var consoleEnvironment = new
ConsoleEnvironment
(console, console, TextReader.Null);
899
var consoleEnvironment = new
ConsoleEnvironment
(stdoutConsole, stderrConsole, TextReader.Null);
933
var consoleEnvironment = new
ConsoleEnvironment
(stdoutConsole, stderrConsole, TextReader.Null);
962
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)
427
return new
ConsoleEnvironment
(outConsole, errorConsole, TextReader.Null);
29 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)
460
builder.Services.AddSingleton(s => s.GetRequiredService<
ConsoleEnvironment
>().Out);
937
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();
966
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();
1554
var
consoleEnvironment = provider.GetRequiredService<
ConsoleEnvironment
>();
1572
var
consoleEnvironment = provider.GetRequiredService<
ConsoleEnvironment
>();
Aspire.Cli.Tests (13)
Commands\AgentTelemetryCommandTests.cs (1)
148
private static
ConsoleEnvironment
CreateConsole(TextReader input, TextWriter output, TextWriter error)
Commands\NewCommandTests.cs (1)
3063
sp.GetRequiredService<
ConsoleEnvironment
>(),
Commands\RunCommandTests.cs (2)
3572
var
consoleEnvironment = sp.GetRequiredService<
ConsoleEnvironment
>();
Interaction\ConsoleInteractionServiceTests.cs (4)
33
var
consoleEnvironment = new ConsoleEnvironment(console, console, TextReader.Null);
899
var
consoleEnvironment = new ConsoleEnvironment(stdoutConsole, stderrConsole, TextReader.Null);
933
var
consoleEnvironment = new ConsoleEnvironment(stdoutConsole, stderrConsole, TextReader.Null);
962
var
consoleEnvironment = new ConsoleEnvironment(stdoutConsole, stderrConsole, TextReader.Null);
Utils\CliTestHelper.cs (5)
141
services.AddSingleton(sp => sp.GetRequiredService<
ConsoleEnvironment
>().Out);
220
services.AddSingleton(sp => new TrayProtocolOutput(() => sp.GetRequiredService<
ConsoleEnvironment
>().Out.Profile.Out.Writer));
419
public Func<IServiceProvider,
ConsoleEnvironment
> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) =>
551
var
consoleEnvironment = serviceProvider.GetRequiredService<
ConsoleEnvironment
>();