3 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
231builder.Services.AddSingleton(s => new ConsoleEnvironment(
Aspire.Cli.Tests (2)
Interaction\ConsoleInteractionServiceTests.cs (1)
19var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (1)
266return new ConsoleEnvironment(outConsole, errorConsole);
16 references to ConsoleEnvironment
aspire (11)
ConsoleEnvironment.cs (1)
14/// Initializes a new instance of the <see cref="ConsoleEnvironment"/> class.
Interaction\BannerService.cs (1)
44public BannerService(ConsoleEnvironment consoleEnvironment)
Interaction\ConsoleInteractionService.cs (1)
34public ConsoleInteractionService(ConsoleEnvironment consoleEnvironment, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Program.cs (8)
205new SpectreConsoleLoggerProvider(sp.GetRequiredService<ConsoleEnvironment>().Error.Profile.Out.Writer)); 234builder.Services.AddSingleton(s => s.GetRequiredService<ConsoleEnvironment>().Out); 511var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>(); 707var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>(); 721var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>();
Aspire.Cli.Tests (5)
Interaction\ConsoleInteractionServiceTests.cs (1)
19var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (4)
89services.AddSingleton(sp => sp.GetRequiredService<ConsoleEnvironment>().Out); 258public Func<IServiceProvider, ConsoleEnvironment> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) => 377var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>();