2 implementations of Environment
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
370IHostEnvironment IHostApplicationBuilder.Environment => Environment;
Microsoft.Extensions.Hosting (1)
HostApplicationBuilder.cs (1)
191public IHostEnvironment Environment => _environment;
7 references to Environment
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
92if (!builder.Environment.IsDevelopment())
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2526Assert.True(iHostApplicationBuilder.Environment.IsProduction()); 2527Assert.NotNull(iHostApplicationBuilder.Environment.ContentRootFileProvider);