22 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
118.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container"); 156.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Kubernetes.Tests (10)
KubernetesDeployTests.cs (2)
1567.WithEnvironment("SOME_URL", $"http://{host}/test") 1568.WithEnvironment("SECRET_URL", $"http://{host}/test?token={token}");
KubernetesPublisherTests.cs (8)
1022.WithEnvironment("SOME_URL", $"http://{host}/test") 1023.WithEnvironment("SECRET_URL", $"http://{host}/test?token={token}"); 1069.WithEnvironment("URL", $"http://{host}/test"); 1095.WithEnvironment("URL", $"http://{dashedHost}/{underscoredHost}"); 1119.WithEnvironment("URL", $"http://{firstHost}/{secondHost}"); 1179.WithEnvironment("COMPOSITE", $"prefix-{{literal}}-{second}-{first}-{second}-suffix"); 1221.WithEnvironment("URL", $"http://{sharedHost}/first"); 1224.WithEnvironment("URL", $"http://{sharedHost}/second");
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
239.WithEnvironment("URL", $"{endpoint}/foo") 240.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 241.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}") 242.WithEnvironment("HOST", $"{test.Resource};name=1"); 288.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 321.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)
74.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 75.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 76.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");