2 implementations of Environment
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
372
IHostEnvironment IHostApplicationBuilder.
Environment
=> Environment;
Microsoft.Extensions.Hosting (1)
HostApplicationBuilder.cs (1)
193
public IHostEnvironment
Environment
=> _environment;
8 references to Environment
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\EntityFrameworkUtils.cs (1)
101
if (!builder.
Environment
.IsDevelopment())
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2528
Assert.True(iHostApplicationBuilder.
Environment
.IsProduction());
2529
Assert.NotNull(iHostApplicationBuilder.
Environment
.ContentRootFileProvider);