135 references to WithEnvironment
Aspire.Hosting (17)
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
12return builder.WithEnvironment((context) =>
ProjectResourceBuilderExtensions.cs (5)
642builder.WithEnvironment(context => 825builder.WithEnvironment(context => 1133builder.WithEnvironment(context => 1178builder.WithEnvironment(context => 1224builder.WithEnvironment(context =>
ResourceBuilderExtensions.cs (11)
310return builder.WithEnvironment(context => 349return builder.WithEnvironment(context => 425return builder.WithEnvironment(context => 491return builder.WithEnvironment(context => 518return builder.WithEnvironment(context => 567return builder.WithEnvironment(context => 598return builder.WithEnvironment(context => 1390return builder.WithEnvironment(context => 1724builder.WithEnvironment(callback); 2192/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>. 2210/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>.
Aspire.Hosting.Azure (1)
AzureBicepResourceExtensions.cs (1)
102return builder.WithEnvironment(ctx =>
Aspire.Hosting.Azure.Functions (4)
AzureFunctionsProjectResourceExtensions.cs (3)
212.WithEnvironment(context => 350return destination.WithEnvironment(context => 381return destination.WithEnvironment(context =>
DurableTask\DurableTaskResourceExtensions.cs (1)
171.WithEnvironment(
Aspire.Hosting.Azure.Tests (13)
AzureAppServiceTests.cs (2)
521.WithEnvironment(context => 1414project.WithEnvironment(context =>
AzureContainerAppExpressEndpointTests.cs (1)
35web.WithEnvironment(context =>
AzureContainerAppsTests.cs (7)
385project.WithEnvironment(context => 489project.WithEnvironment(context => 931.WithEnvironment(context => 1810.WithEnvironment(context => 3109project.WithEnvironment(context => 3150project.WithEnvironment(context => 3191project.WithEnvironment(context =>
AzureResourcePreparerTests.cs (1)
396.WithEnvironment(context =>
FoundryExtensionsTests.cs (2)
855.WithEnvironment(context => 895.WithEnvironment(context =>
Aspire.Hosting.Blazor (1)
BlazorHostedExtensions.cs (1)
224host.WithEnvironment(context =>
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
513.WithEnvironment(context =>
Aspire.Hosting.Docker.Tests (5)
DockerComposePublisherTests.cs (5)
64.WithEnvironment(context => 345.WithEnvironment(context => 919.WithEnvironment(context => 1237.WithEnvironment(context => 1281.WithEnvironment(context =>
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectBuildCoordinatorTests.cs (4)
1227.WithEnvironment(context => context.EnvironmentVariables["RUNTIME_ONLY"] = "value"); 1382.WithEnvironment(context => context.EnvironmentVariables["RUNTIME_ONLY"] = "runtime") 1421.WithEnvironment(context => context.EnvironmentVariables["RUNTIME_ONLY"] = "runtime"); 1638.WithEnvironment(context => context.EnvironmentVariables["RUNTIME_ONLY"] = "runtime");
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
400.WithEnvironment((ctx) =>
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
609.WithEnvironment(context =>
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
137.WithEnvironment(context =>
Aspire.Hosting.Java (3)
JavaHostingExtensions.cs (3)
488resourceBuilder.WithEnvironment(context => 1075return builder.WithEnvironment(context => 1228return builder.WithEnvironment(context =>
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1329builder.WithEnvironment(ctx =>
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (4)
80.WithEnvironment(context => ConfigureKafkaContainer(context, kafka)) 144kafkaUiBuilder.WithEnvironment(context => ConfigureKafkaUIContainer(context, endpoint, index)); 204.WithEnvironment(ConfigureLogDirs) 223.WithEnvironment(ConfigureLogDirs)
Aspire.Hosting.Keycloak (2)
KeycloakResourceBuilderExtensions.cs (2)
79.WithEnvironment(context => 118.WithEnvironment(context =>
Aspire.Hosting.Kubernetes.Tests (9)
KubernetesDeployTests.cs (3)
1399.WithEnvironment(context => 1611.WithEnvironment(context => 1655.WithEnvironment(context =>
KubernetesPublisherTests.cs (6)
1143.WithEnvironment(context => 1265.WithEnvironment(context => 1330.WithEnvironment(context => 1380.WithEnvironment(context => 1445.WithEnvironment(context => 1498.WithEnvironment(context =>
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
544platformBuilder.WithEnvironment(context =>
Aspire.Hosting.Milvus (2)
MilvusBuilderExtensions.cs (2)
70.WithEnvironment(ctx => 155.WithEnvironment(context => ConfigureAttuContainer(context, builder.Resource))
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
95.WithEnvironment(context => 325.WithEnvironment(context => ConfigureMongoExpressContainer(context, builder.Resource))
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
88.WithEnvironment(context => 343phpMyAdminContainerBuilder.WithEnvironment(context =>
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
64.WithEnvironment(context =>
Aspire.Hosting.Orleans (1)
OrleansServiceExtensions.cs (1)
450builder.WithEnvironment(context =>
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (3)
121.WithEnvironment(context => 260.WithEnvironment(SetPgAdminEnvironmentVariables) 449.WithEnvironment(context =>
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
382resourceBuilder.WithEnvironment(context =>
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
83.WithEnvironment(context => 202builder.WithEnvironment(context =>
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
81.WithEnvironment(context => 289builder.WithEnvironment(context =>
Aspire.Hosting.Radius.Tests (8)
Publishing\BackingResourceValueResolutionTests.cs (8)
51.WithEnvironment(context => 77.WithEnvironment(context => 102.WithEnvironment(context => 338.WithEnvironment(context => 367.WithEnvironment(context => 938.WithEnvironment(context => 1297.WithEnvironment(ctx => ctx.EnvironmentVariables["CS"] = db.Resource); 1316.WithEnvironment(ctx => ctx.EnvironmentVariables["CS"] = db.Resource.ConnectionStringExpression);
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
104.WithEnvironment(context => 380.WithEnvironment(context =>
Aspire.Hosting.Rust.Tests (1)
RustPublicApiTests.cs (1)
310.WithEnvironment(context =>
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
62.WithEnvironment(context =>
Aspire.Hosting.Tests (32)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (12)
390.WithEnvironment(context => context.EnvironmentVariables["POSTGRES_PASSWORD"] = passwordParameter); 438.WithEnvironment(context => context.EnvironmentVariables["REFERENCED_SECRET"] = referencedParameter); 505.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 582.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 652.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 723.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 808.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 863.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = coldSecret.Resource); 921.WithEnvironment(throwingCallback); 969.WithEnvironment(cancelAwareCallback); 1019.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret); 1071.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret);
Dcp\DcpExecutorTests.cs (9)
906.WithEnvironment(c => 5322.WithEnvironment(context => 9791.WithEnvironment(c => 9826.WithEnvironment(c => 9906.WithEnvironment(c => 9951.WithEnvironment(c => 9997.WithEnvironment(c => 10050.WithEnvironment(c => 10534executable.WithEnvironment(context =>
ExecutionConfigurationGathererTests.cs (1)
181.WithEnvironment(ctx => ctx.EnvironmentVariables["KEY2"] = "value2")
ExpressionResolverTests.cs (1)
166.WithEnvironment(env =>
Orchestrator\ParameterProcessorTests.cs (2)
795.WithEnvironment(context => 829.WithEnvironment(context =>
ResourceDependencyTests.cs (1)
245.WithEnvironment(context =>
ResourceExtensionsTests.cs (1)
215.WithEnvironment(context =>
WithCertificateAuthorityCollection.cs (1)
20.WithEnvironment(context =>
WithEnvironmentTests.cs (2)
20.WithEnvironment(context => 181.WithEnvironment(context =>
WithOtlpExporterTests.cs (1)
87.WithEnvironment(context =>
WithReferenceTests.cs (1)
998.WithEnvironment(context =>
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
154.WithEnvironment(context =>
Aspire.Hosting.Yarp (2)
YarpResourceExtensions.cs (2)
79yarpBuilder.WithEnvironment(ctx => 94yarpBuilder.WithEnvironment(ctx =>
AspireWithNode.AppHost (1)
AppHost.cs (1)
41.WithEnvironment(ctx =>
AzureAppService.AppHost (1)
AppHost.cs (1)
39.WithEnvironment(context =>
AzureContainerApps.AppHost (1)
AppHost.cs (1)
48.WithEnvironment(context =>