34 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
407return builder.WithEnvironment($"services__{name}__default__0", uri.ToString());
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
366.WithEnvironment("ACCEPT_EULA", "Y")
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)
78var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 132var mysql1 = builder1.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 320var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName); 392var mysql = builder.AddMySql("mysql").WithEnvironment("MYSQL_DATABASE", mySqlDbName);
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
86.WithEnvironment("POSTGRES_HOST_AUTH_METHOD", "scram-sha-256") 87.WithEnvironment("POSTGRES_INITDB_ARGS", "--auth-host=scram-sha-256 --auth-local=scram-sha-256")
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
110var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName); 209var postgres1 = builder1.AddPostgres("pg", usernameParameter, passwordParameter).WithEnvironment("POSTGRES_DB", postgresDbName); 382var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName);
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
55.WithEnvironment("ACCEPT_EULA", "Y")
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (3)
272.WithEnvironment("APP_HOST_ARG", builder.Configuration["APP_HOST_ARG"]) 273.WithEnvironment("LAUNCH_PROFILE_VAR_FROM_APP_HOST", builder.Configuration["LAUNCH_PROFILE_VAR_FROM_APP_HOST"]); 366.WithEnvironment("LAUNCH_PROFILE_VAR_FROM_APP_HOST", builder.Configuration["LAUNCH_PROFILE_VAR_FROM_APP_HOST"]);
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);
Stress.AppHost (1)
Program.cs (1)
32.WithEnvironment("OTEL_DOTNET_EXPERIMENTAL_METRICS_EMIT_OVERFLOW_ATTRIBUTE", "true");
TestingAppHost1.AppHost (2)
Program.cs (2)
22.WithEnvironment("APP_HOST_ARG", builder.Configuration["APP_HOST_ARG"]) 23.WithEnvironment("LAUNCH_PROFILE_VAR_FROM_APP_HOST", builder.Configuration["LAUNCH_PROFILE_VAR_FROM_APP_HOST"]);
TestProject.AppHost (2)
TestProgram.cs (2)
71IntegrationServiceABuilder = IntegrationServiceABuilder.WithEnvironment("SKIP_RESOURCES", string.Join(',', resourcesToSkip)); 84.WithEnvironment("POSTGRES_DB", postgresDbName)
WithDockerfile.AppHost (1)
Program.cs (1)
13.WithEnvironment("DOCKER_BUILDKIT", "1");