22 references to WithEnvironment
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
148
platformBuilder.
WithEnvironment
(KnownOtelConfigNames.ExporterOtlpEndpoint, tunnelEndpoint);
Aspire.Hosting.Tests (20)
ExpressionResolverTests.cs (1)
249
.
WithEnvironment
("MY_CONTAINER", connectionStringResource.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork))
ResourceDependencyTests.cs (18)
35
.
WithEnvironment
("API_URL", api.GetEndpoint("http"));
239
.
WithEnvironment
("C_HOST", c.GetEndpoint("redisc"));
241
.
WithEnvironment
("B_HOST", b.GetEndpoint("httpb"));
301
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
303
.
WithEnvironment
("C_URL", c.GetEndpoint("http"));
304
b.
WithEnvironment
("D_URL", d.GetEndpoint("http")); // Completes the cycle
306
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
325
.
WithEnvironment
("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference
608
var a = builder.AddContainer("a", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
609
var b = builder.AddContainer("b", "alpine").
WithEnvironment
("Y_URL", y.GetEndpoint("http"));
628
var a = builder.AddContainer("a", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
629
var b = builder.AddContainer("b", "alpine").
WithEnvironment
("X_URL", x.GetEndpoint("http"));
784
.
WithEnvironment
("A_URL", a.GetEndpoint("http"));
787
.
WithEnvironment
("B_URL", b.GetEndpoint("http"))
788
.
WithEnvironment
("D_URL", d.GetEndpoint("http"));
789
a.
WithEnvironment
("C_URL", c.GetEndpoint("http"));
839
.
WithEnvironment
("Y_URL", y.GetEndpoint("http"));
841
.
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);