22 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.Kubernetes.Tests (10)
KubernetesDeployTests.cs (2)
1601.WithEnvironment("SOME_URL", $"http://{host}/test") 1602.WithEnvironment("SECRET_URL", $"http://{host}/test?token={token}");
KubernetesPublisherTests.cs (8)
919.WithEnvironment("SOME_URL", $"http://{host}/test") 920.WithEnvironment("SECRET_URL", $"http://{host}/test?token={token}"); 966.WithEnvironment("URL", $"http://{host}/test"); 992.WithEnvironment("URL", $"http://{dashedHost}/{underscoredHost}"); 1016.WithEnvironment("URL", $"http://{firstHost}/{secondHost}"); 1076.WithEnvironment("COMPOSITE", $"prefix-{{literal}}-{second}-{first}-{second}-suffix"); 1118.WithEnvironment("URL", $"http://{sharedHost}/first"); 1121.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)
74.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)
73.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 74.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 75.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");