29 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
407return 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)
61.WithEnvironment("COMMON_STORAGETYPE", "local") 62.WithEnvironment("ETCD_USE_EMBED", "true") 63.WithEnvironment("ETCD_DATA_DIR", "/var/lib/milvus/etcd") 64.WithEnvironment("COMMON_SECURITY_AUTHORIZATIONENABLED", "true")
Aspire.Hosting.MySql.Tests (4)
MySqlFunctionalTests.cs (4)
80var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 134var mysql1 = builder1.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 327var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 399var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName);
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
81.WithEnvironment("POSTGRES_HOST_AUTH_METHOD", "scram-sha-256") 82.WithEnvironment("POSTGRES_INITDB_ARGS", "--auth-host=scram-sha-256 --auth-local=scram-sha-256")
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
112var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName); 210var postgres1 = builder1.AddPostgres("pg", usernameParameter, passwordParameter).WithEnvironment("POSTGRES_DB", postgresDbName); 379var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName);
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
55.WithEnvironment("ACCEPT_EULA", "Y")
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (6)
169.WithEnvironment("discovery.type", "single-node") 170.WithEnvironment("xpack.security.enabled", "true") 205.WithEnvironment("discovery.type", "single-node") 206.WithEnvironment("xpack.security.enabled", "true") 238.WithEnvironment("discovery.type", "single-node") 239.WithEnvironment("xpack.security.enabled", "true")
WithEnvironmentTests.cs (1)
64.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");