22 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
121
.
WithEnvironment
("BLOB_CONTAINER_URL", $"{blobs}/container");
161
.
WithEnvironment
("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Kubernetes.Tests (10)
KubernetesDeployTests.cs (2)
1568
.
WithEnvironment
("SOME_URL", $"http://{host}/test")
1569
.
WithEnvironment
("SECRET_URL", $"http://{host}/test?token={token}");
KubernetesPublisherTests.cs (8)
1251
.
WithEnvironment
("SOME_URL", $"http://{host}/test")
1252
.
WithEnvironment
("SECRET_URL", $"http://{host}/test?token={token}");
1298
.
WithEnvironment
("URL", $"http://{host}/test");
1324
.
WithEnvironment
("URL", $"http://{dashedHost}/{underscoredHost}");
1348
.
WithEnvironment
("URL", $"http://{firstHost}/{secondHost}");
1408
.
WithEnvironment
("COMPOSITE", $"prefix-{{literal}}-{second}-{first}-{second}-suffix");
1450
.
WithEnvironment
("URL", $"http://{sharedHost}/first");
1453
.
WithEnvironment
("URL", $"http://{sharedHost}/second");
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
67
.
WithEnvironment
("URL", $"{endpoint}/foo")
68
.
WithEnvironment
("PORT", $"{endpoint.Property(EndpointProperty.Port)}")
69
.
WithEnvironment
("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}")
70
.
WithEnvironment
("HOST", $"{test.Resource};name=1");
116
.
WithEnvironment
("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
149
.
WithEnvironment
("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
73
.
WithEnvironment
("ASPNETCORE_URLS", $"{resource.GetEndpoint("https").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("https").Property(EndpointProperty.TargetPort)};{resource.GetEndpoint("http").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("http").Property(EndpointProperty.TargetPort)}");
Stress.AppHost (3)
AppHost.cs (3)
75
.
WithEnvironment
("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")
76
.
WithEnvironment
("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}")
77
.
WithEnvironment
("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");