82 references to WithEnvironment
Aspire.Hosting (16)
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
12return builder.WithEnvironment((context) =>
ProjectResourceBuilderExtensions.cs (5)
467builder.WithEnvironment(context => 650builder.WithEnvironment(context => 942builder.WithEnvironment(context => 986builder.WithEnvironment(context => 1030builder.WithEnvironment(context =>
ResourceBuilderExtensions.cs (10)
64return builder.WithEnvironment(context => 103return builder.WithEnvironment(context => 178return builder.WithEnvironment(context => 244return builder.WithEnvironment(context => 271return builder.WithEnvironment(context => 302return builder.WithEnvironment(context => 717return builder.WithEnvironment(context => 990builder.WithEnvironment(callback); 1222/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>. 1240/// 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 (3)
AzureBicepResourceExtensions.cs (3)
87return builder.WithEnvironment(ctx => 105return builder.WithEnvironment(ctx => 123return builder.WithEnvironment(ctx =>
Aspire.Hosting.Azure.Functions (3)
AzureFunctionsProjectResourceExtensions.cs (3)
209.WithEnvironment(context => 347return destination.WithEnvironment(context => 378return destination.WithEnvironment(context =>
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
420.WithEnvironment(context =>
Aspire.Hosting.Azure.Tests (10)
AzureAppServiceTests.cs (2)
306.WithEnvironment(context => 960project.WithEnvironment(context =>
AzureContainerAppsTests.cs (7)
306project.WithEnvironment(context => 383project.WithEnvironment(context => 789.WithEnvironment(context => 1611.WithEnvironment(context => 2443project.WithEnvironment(context => 2484project.WithEnvironment(context => 2525project.WithEnvironment(context =>
AzureResourcePreparerTests.cs (1)
229.WithEnvironment(context =>
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
480.WithEnvironment(context =>
Aspire.Hosting.Docker.Tests (4)
DockerComposePublisherTests.cs (4)
61.WithEnvironment(context => 296.WithEnvironment(context => 937.WithEnvironment(context => 981.WithEnvironment(context =>
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
222.WithEnvironment((ctx) =>
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
136.WithEnvironment(context =>
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (4)
78.WithEnvironment(context => ConfigureKafkaContainer(context, kafka)) 123kafkaUiBuilder.WithEnvironment(context => ConfigureKafkaUIContainer(context, endpoint, index)); 180.WithEnvironment(ConfigureLogDirs) 198.WithEnvironment(ConfigureLogDirs)
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
75.WithEnvironment(context =>
Aspire.Hosting.Kubernetes.Tests (3)
KubernetesPublisherTests.cs (3)
461.WithEnvironment(context => 523.WithEnvironment(context => 580.WithEnvironment(context =>
Aspire.Hosting.Milvus (2)
MilvusBuilderExtensions.cs (2)
66.WithEnvironment(ctx => 145.WithEnvironment(context => ConfigureAttuContainer(context, builder.Resource))
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
88.WithEnvironment(context => 164.WithEnvironment(context => ConfigureMongoExpressContainer(context, builder.Resource))
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
85.WithEnvironment(context => 259phpMyAdminContainerBuilder.WithEnvironment(context =>
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
63.WithEnvironment(context =>
Aspire.Hosting.Orleans (1)
OrleansServiceExtensions.cs (1)
417builder.WithEnvironment(context =>
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (3)
116.WithEnvironment(context => 207.WithEnvironment(SetPgAdminEnvironmentVariables) 389.WithEnvironment(context =>
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
378resourceBuilder.WithEnvironment(context =>
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
79.WithEnvironment(context => 177builder.WithEnvironment(context =>
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
79.WithEnvironment(context => 267builder.WithEnvironment(context =>
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
100.WithEnvironment(context => 310.WithEnvironment(context =>
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
58.WithEnvironment(context =>
Aspire.Hosting.Tests (9)
Dcp\DcpExecutorTests.cs (1)
219.WithEnvironment(c =>
ExecutionConfigurationGathererTests.cs (1)
144.WithEnvironment(ctx => ctx.EnvironmentVariables["KEY2"] = "value2")
ExpressionResolverTests.cs (1)
166.WithEnvironment(env =>
Orchestrator\ParameterProcessorTests.cs (2)
786.WithEnvironment(context => 820.WithEnvironment(context =>
ResourceExtensionsTests.cs (1)
174.WithEnvironment(context =>
WithCertificateAuthorityCollection.cs (1)
20.WithEnvironment(context =>
WithEnvironmentTests.cs (2)
20.WithEnvironment(context => 181.WithEnvironment(context =>
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
150.WithEnvironment(context =>
Aspire.Hosting.Yarp (2)
YarpResourceExtensions.cs (2)
78yarpBuilder.WithEnvironment(ctx => 93yarpBuilder.WithEnvironment(ctx =>
AspireWithNode.AppHost (1)
AppHost.cs (1)
37.WithEnvironment(ctx =>
AzureAppService.AppHost (1)
Program.cs (1)
37.WithEnvironment(context =>
AzureContainerApps.AppHost (1)
Program.cs (1)
48.WithEnvironment(context =>