141 references to WithEnvironment
Aspire.Hosting (17)
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
12return builder.WithEnvironment((context) =>
ProjectResourceBuilderExtensions.cs (5)
686builder.WithEnvironment(context => 869builder.WithEnvironment(context => 1179builder.WithEnvironment(context => 1224builder.WithEnvironment(context => 1270builder.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.EntraId (1)
EntraIdResourceExtensions.cs (1)
2784builder.WithEnvironment(context =>
Aspire.Hosting.Azure.Functions (5)
AzureFunctionsProjectResourceExtensions.cs (4)
260.WithEnvironment(context => 318.WithEnvironment(context => 641return destination.WithEnvironment(context => 657return destination.WithEnvironment(context =>
DurableTask\DurableTaskResourceExtensions.cs (1)
171.WithEnvironment(
Aspire.Hosting.Azure.Tests (15)
AzureAppServiceTests.cs (3)
34.WithEnvironment(context => context.EnvironmentVariables["CLIENT_ID"] = new TestBicepOutputReferenceProvider(identity.Resource.ClientId)); 545.WithEnvironment(context => 1438project.WithEnvironment(context =>
AzureContainerAppExpressEndpointTests.cs (1)
39web.WithEnvironment(context =>
AzureContainerAppsTests.cs (8)
36.WithEnvironment(context => context.EnvironmentVariables["CLIENT_ID"] = new TestBicepOutputReferenceProvider(identity.Resource.ClientId)); 414project.WithEnvironment(context => 520project.WithEnvironment(context => 964.WithEnvironment(context => 1855.WithEnvironment(context => 3190project.WithEnvironment(context => 3233project.WithEnvironment(context => 3276project.WithEnvironment(context =>
AzureResourcePreparerTests.cs (1)
512.WithEnvironment(context =>
FoundryExtensionsTests.cs (2)
856.WithEnvironment(context => 896.WithEnvironment(context =>
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubExtensions.cs (1)
203.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)
65.WithEnvironment(context => 346.WithEnvironment(context => 920.WithEnvironment(context => 1238.WithEnvironment(context => 1282.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)
612.WithEnvironment(context =>
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
137.WithEnvironment(context =>
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
240go.WithEnvironment(context => context.EnvironmentVariables["GOFLAGS"] = parameter);
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)
1400.WithEnvironment(context => 1612.WithEnvironment(context => 1656.WithEnvironment(context =>
KubernetesPublisherTests.cs (6)
1372.WithEnvironment(context => 1494.WithEnvironment(context => 1559.WithEnvironment(context => 1609.WithEnvironment(context => 1674.WithEnvironment(context => 1727.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)
383resourceBuilder.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)
432.WithEnvironment(context => context.EnvironmentVariables["POSTGRES_PASSWORD"] = passwordParameter); 480.WithEnvironment(context => context.EnvironmentVariables["REFERENCED_SECRET"] = referencedParameter); 547.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 624.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = referencedSecret); 694.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 765.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 850.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = secret); 905.WithEnvironment(context => context.EnvironmentVariables["SECRET"] = coldSecret.Resource); 963.WithEnvironment(throwingCallback); 1011.WithEnvironment(cancelAwareCallback); 1061.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret); 1113.WithEnvironment(context => context.EnvironmentVariables["DB_PASSWORD"] = secret);
Dcp\DcpExecutorTests.cs (9)
907.WithEnvironment(c => 5323.WithEnvironment(context => 9792.WithEnvironment(c => 9827.WithEnvironment(c => 9907.WithEnvironment(c => 9952.WithEnvironment(c => 9998.WithEnvironment(c => 10051.WithEnvironment(c => 10535executable.WithEnvironment(context =>
ExecutionConfigurationGathererTests.cs (1)
181.WithEnvironment(ctx => ctx.EnvironmentVariables["KEY2"] = "value2")
ExpressionResolverTests.cs (1)
166.WithEnvironment(env =>
Orchestrator\ParameterProcessorTests.cs (2)
958.WithEnvironment(context => 992.WithEnvironment(context =>
ResourceDependencyTests.cs (1)
245.WithEnvironment(context =>
ResourceExtensionsTests.cs (1)
215.WithEnvironment(context =>
WithCertificateAuthorityCollection.cs (1)
20.WithEnvironment(context =>
WithEnvironmentTests.cs (2)
28.WithEnvironment(context => 344.WithEnvironment(context =>
WithOtlpExporterTests.cs (1)
87.WithEnvironment(context =>
WithReferenceTests.cs (1)
216.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 =>