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