31 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
262
EndpointReference endpointReference => builder.
WithEnvironment
(name, endpointReference),
Aspire.Hosting.Azure.Tests (3)
AzureSandboxesTests.cs (3)
2526
.
WithEnvironment
("API_URL", api.GetEndpoint("http"))
2565
first.
WithEnvironment
("SECOND_URL", second.GetEndpoint("http"));
2566
second.
WithEnvironment
("FIRST_URL", first.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
778
.
WithEnvironment
("QDB_CLIENT_CONF", questdb.GetEndpoint("http"));
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
260
platformBuilder.
WithEnvironment
(KnownOtelConfigNames.ExporterOtlpEndpoint, tunnelEndpoint);
Aspire.Hosting.Tests (24)
ContainerTunnelTests.cs (3)
97
.
WithEnvironment
("SERVICEA_URL", servicea.GetEndpoint("http"));
103
.
WithEnvironment
("SERVICEA_URL", servicea.GetEndpoint("http"))
133
.
WithEnvironment
("UPSTREAM_SERVICE_URL", upstreamService.GetEndpoint("http"))
ExecutionConfigurationGathererTests.cs (1)
215
.
WithEnvironment
("API_URL", new EndpointReference(target, "https"))
ExpressionResolverTests.cs (1)
286
.
WithEnvironment
("MY_CONTAINER", connectionStringResource.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork))
ResourceDependencyTests.cs (18)
38
.
WithEnvironment
("API_URL", api.GetEndpoint("http"));
380
.
WithEnvironment
("C_HOST", c.GetEndpoint("redisc"));
382
.
WithEnvironment
("B_HOST", b.GetEndpoint("httpb"));
442
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
444
.
WithEnvironment
("C_URL", c.GetEndpoint("http"));
445
b.
WithEnvironment
("D_URL", d.GetEndpoint("http")); // Completes the cycle
447
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
466
.
WithEnvironment
("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference
749
var a = builder.AddContainer("a", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
750
var b = builder.AddContainer("b", "alpine").
WithEnvironment
("Y_URL", y.GetEndpoint("http"));
769
var a = builder.AddContainer("a", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
770
var b = builder.AddContainer("b", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
928
.
WithEnvironment
("A_URL", a.GetEndpoint("http"));
931
.
WithEnvironment
("B_URL", b.GetEndpoint("http"))
932
.
WithEnvironment
("D_URL", d.GetEndpoint("http"));
933
a.
WithEnvironment
("C_URL", c.GetEndpoint("http"));
983
.
WithEnvironment
("Y_URL", y.GetEndpoint("http"));
985
.
WithEnvironment
("Z_URL", z.GetEndpoint("http"));
WithEnvironmentTests.cs (1)
53
.
WithEnvironment
("myName", projectA.GetEndpoint("mybinding"));
DevTunnels.AppHost (1)
AppHost.cs (1)
21
frontend.
WithEnvironment
("TUNNEL_URL", devTunnelPortEndpoint);