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