36 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
278EndpointReference endpointReference => builder.WithEnvironment(name, endpointReference),
Aspire.Hosting.Azure.Tests (3)
AzureSandboxesTests.cs (3)
3141.WithEnvironment("API_URL", api.GetEndpoint("http")) 3181first.WithEnvironment("SECOND_URL", second.GetEndpoint("http")); 3182second.WithEnvironment("FIRST_URL", first.GetEndpoint("http"));
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
1558.WithEnvironment("API_ENDPOINT", api.GetEndpoint("http"))
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
1676.WithEnvironment("QDB_CLIENT_CONF", questdb.GetEndpoint("http"));
Aspire.Hosting.Radius.Tests (1)
Publishing\BackingResourceValueResolutionTests.cs (1)
1254.WithEnvironment("BACKEND_URL", backend.GetEndpoint("custom"));
Aspire.Hosting.Tests (28)
ContainerTunnelTests.cs (3)
131.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")); 137.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")) 167.WithEnvironment("UPSTREAM_SERVICE_URL", upstreamService.GetEndpoint("http"))
ExecutionConfigurationGathererTests.cs (2)
126.WithEnvironment("TARGET_ENVIRONMENT", environmentReference) 250.WithEnvironment("API_URL", new EndpointReference(target, "https"))
ExpressionResolverTests.cs (1)
315.WithEnvironment("MY_CONTAINER", connectionStringResource.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork))
ManifestExpressionTests.cs (1)
418.WithEnvironment("ENDPOINT", endpoint)
Orchestrator\ApplicationOrchestratorTests.cs (2)
306.WithEnvironment("HOST_ENDPOINT", frontend.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork)) 307.WithEnvironment("SERVICE_ENDPOINT", frontend.GetEndpoint("http"));
ResourceDependencyTests.cs (18)
38.WithEnvironment("API_URL", api.GetEndpoint("http")); 382.WithEnvironment("C_HOST", c.GetEndpoint("redisc")); 384.WithEnvironment("B_HOST", b.GetEndpoint("httpb")); 444.WithEnvironment("B_URL", b.GetEndpoint("http")); 446.WithEnvironment("C_URL", c.GetEndpoint("http")); 447b.WithEnvironment("D_URL", d.GetEndpoint("http")); // Completes the cycle 449.WithEnvironment("B_URL", b.GetEndpoint("http")); 468.WithEnvironment("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference 751var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 752var b = builder.AddContainer("b", "alpine").WithEnvironment("Y_URL", y.GetEndpoint("http")); 771var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 772var b = builder.AddContainer("b", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 930.WithEnvironment("A_URL", a.GetEndpoint("http")); 933.WithEnvironment("B_URL", b.GetEndpoint("http")) 934.WithEnvironment("D_URL", d.GetEndpoint("http")); 935a.WithEnvironment("C_URL", c.GetEndpoint("http")); 985.WithEnvironment("Y_URL", y.GetEndpoint("http")); 987.WithEnvironment("Z_URL", z.GetEndpoint("http"));
WithEnvironmentTests.cs (1)
216.WithEnvironment("myName", projectA.GetEndpoint("mybinding"));
DevTunnels.AppHost (1)
AppHost.cs (1)
21frontend.WithEnvironment("TUNNEL_URL", devTunnelPortEndpoint);