3 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
301builder.Services.AddSingleton(s => new ConsoleEnvironment(
Aspire.Cli.Tests (2)
Interaction\ConsoleInteractionServiceTests.cs (1)
19var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (1)
274return new ConsoleEnvironment(outConsole, errorConsole);
15 references to ConsoleEnvironment
aspire (10)
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 (7)
304builder.Services.AddSingleton(s => s.GetRequiredService<ConsoleEnvironment>().Out); 590var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>(); 800var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>(); 814var 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); 266public Func<IServiceProvider, ConsoleEnvironment> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) => 386var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>();