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