3 instantiations of ConsoleEnvironment
aspire (1)
Program.cs (1)
145builder.Services.AddSingleton(s => new ConsoleEnvironment(
Aspire.Cli.Tests (2)
Interaction\ConsoleInteractionServiceTests.cs (1)
17var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (1)
214return 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\ConsoleInteractionService.cs (1)
26public ConsoleInteractionService(ConsoleEnvironment consoleEnvironment, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Program.cs (8)
123new SpectreConsoleLoggerProvider(sp.GetRequiredService<ConsoleEnvironment>().Error.Profile.Out.Writer)); 148builder.Services.AddSingleton(s => s.GetRequiredService<ConsoleEnvironment>().Out); 348var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>(); 524var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>(); 538var consoleEnvironment = provider.GetRequiredService<ConsoleEnvironment>();
Aspire.Cli.Tests (5)
Interaction\ConsoleInteractionServiceTests.cs (1)
17var consoleEnvironment = new ConsoleEnvironment(console, console);
Utils\CliTestHelper.cs (4)
79services.AddSingleton(sp => sp.GetRequiredService<ConsoleEnvironment>().Out); 206public Func<IServiceProvider, ConsoleEnvironment> ConsoleEnvironmentFactory => (IServiceProvider serviceProvider) => 318var consoleEnvironment = serviceProvider.GetRequiredService<ConsoleEnvironment>();