12 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
117
.
WithEnvironment
("BLOB_CONTAINER_URL", $"{blobs}/container");
155
.
WithEnvironment
("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
241
.
WithEnvironment
("URL", $"{endpoint}/foo")
242
.
WithEnvironment
("PORT", $"{endpoint.Property(EndpointProperty.Port)}")
243
.
WithEnvironment
("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}")
244
.
WithEnvironment
("HOST", $"{test.Resource};name=1");
290
.
WithEnvironment
("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
325
.
WithEnvironment
("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
89
.
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)
Program.cs (3)
44
.
WithEnvironment
("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")
45
.
WithEnvironment
("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}")
46
.
WithEnvironment
("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");