29 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
343return builder.WithEnvironment($"services__{name}__default__0", uri.ToString());
Aspire.Hosting.Elasticsearch (2)
ElasticsearchBuilderExtensions.cs (2)
87.WithEnvironment("discovery.type", "single-node") 88.WithEnvironment("xpack.security.enabled", "true")
Aspire.Hosting.Milvus (4)
MilvusBuilderExtensions.cs (4)
102.WithEnvironment("COMMON_STORAGETYPE", "local") 103.WithEnvironment("ETCD_USE_EMBED", "true") 104.WithEnvironment("ETCD_DATA_DIR", "/var/lib/milvus/etcd") 105.WithEnvironment("COMMON_SECURITY_AUTHORIZATIONENABLED", "true")
Aspire.Hosting.MySql.Tests (4)
MySqlFunctionalTests.cs (4)
135var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 189var mysql1 = builder1.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 382var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 454var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName);
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
95.WithEnvironment("POSTGRES_HOST_AUTH_METHOD", "scram-sha-256") 96.WithEnvironment("POSTGRES_INITDB_ARGS", "--auth-host=scram-sha-256 --auth-local=scram-sha-256")
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
180var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName); 270var postgres1 = builder1.AddPostgres("pg", usernameParameter, passwordParameter).WithEnvironment("POSTGRES_DB", postgresDbName); 439var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName);
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
68.WithEnvironment("ACCEPT_EULA", "Y")
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (6)
34.WithEnvironment("discovery.type", "single-node") 35.WithEnvironment("xpack.security.enabled", "true") 70.WithEnvironment("discovery.type", "single-node") 71.WithEnvironment("xpack.security.enabled", "true") 103.WithEnvironment("discovery.type", "single-node") 104.WithEnvironment("xpack.security.enabled", "true")
WithEnvironmentTests.cs (1)
63.WithEnvironment("myName", "value");
MySqlDb.AppHost (1)
Program.cs (1)
8.WithEnvironment("MYSQL_DATABASE", catalogDbName)
OpenAIEndToEnd.AppHost (1)
Program.cs (1)
14.WithEnvironment("OpenAI__DeploymentName", deploymentAndModelName);
TestProject.AppHost (2)
TestProgram.cs (2)
69IntegrationServiceABuilder = IntegrationServiceABuilder.WithEnvironment("SKIP_RESOURCES", string.Join(',', resourcesToSkip)); 82.WithEnvironment("POSTGRES_DB", postgresDbName)
WithDockerfile.AppHost (1)
Program.cs (1)
13.WithEnvironment("DOCKER_BUILDKIT", "1");