3 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
229builder.Services.AddSingleton(s => new ConsoleEnvironment(
Aspire.Cli.Tests (2)
Interaction\ConsoleInteractionServiceTests.cs (1)
18var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (1)
252return 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)
26public ConsoleInteractionService(ConsoleEnvironment consoleEnvironment, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Program.cs (8)
203new SpectreConsoleLoggerProvider(sp.GetRequiredService<ConsoleEnvironment>().Error.Profile.Out.Writer)); 232builder.Services.AddSingleton(s => s.GetRequiredService<ConsoleEnvironment>().Out); 501var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>(); 692var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>(); 706var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>();
Aspire.Cli.Tests (5)
Interaction\ConsoleInteractionServiceTests.cs (1)
18var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (4)
88services.AddSingleton(sp => sp.GetRequiredService<ConsoleEnvironment>().Out); 244public Func<IServiceProvider, ConsoleEnvironment> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) => 357var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>();