28 references to Environments
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireAzureEFPostgreSqlExtensionsTests.cs (2)
268var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 291var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Hosting.RemoteHost.Tests (2)
AtsExportsTests.cs (2)
36EnvironmentName = Environments.Development 75public string EnvironmentName { get; set; } = Environments.Production;
Aspire.Hosting.Testing.Tests (1)
TestingBuilderTests.cs (1)
126Assert.Equal(Environments.Development, builder.Environment.EnvironmentName);
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (2)
159var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 182var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
260var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 283var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (2)
213var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 236var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireEFPostgreSqlExtensionsTests.cs (2)
268var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 291var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (2)
261var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 284var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
AspireEFMySqlExtensionsTests.cs (2)
258var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 282var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
14public string EnvironmentName { get; set; } = Extensions.Hosting.Environments.Production;
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
231EnvironmentName = hostConfiguration[HostDefaults.EnvironmentKey] ?? Environments.Production,
Microsoft.Extensions.Hosting.Abstractions (9)
HostEnvironmentEnvExtensions.cs (9)
14/// Checks if the current host environment name is <see cref="Environments.Development"/>. 17/// <returns><see langword="true"/> if the environment name is <see cref="Environments.Development"/>, otherwise <see langword="false"/>.</returns> 22return hostEnvironment.IsEnvironment(Environments.Development); 26/// Checks if the current host environment name is <see cref="Environments.Staging"/>. 29/// <returns><see langword="true"/> if the environment name is <see cref="Environments.Staging"/>, otherwise <see langword="false"/>.</returns> 34return hostEnvironment.IsEnvironment(Environments.Staging); 38/// Checks if the current host environment name is <see cref="Environments.Production"/>. 41/// <returns><see langword="true"/> if the environment name is <see cref="Environments.Production"/>, otherwise <see langword="false"/>.</returns> 46return hostEnvironment.IsEnvironment(Environments.Production);