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