22 references to WithEnvironment
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
148platformBuilder.WithEnvironment("OTEL_EXPORTER_OTLP_ENDPOINT", tunnelEndpoint);
Aspire.Hosting.Tests (20)
ExpressionResolverTests.cs (1)
248.WithEnvironment("MY_CONTAINER", connectionStringResource.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork))
ResourceDependencyTests.cs (18)
34.WithEnvironment("API_URL", api.GetEndpoint("http")); 238.WithEnvironment("C_HOST", c.GetEndpoint("redisc")); 240.WithEnvironment("B_HOST", b.GetEndpoint("httpb")); 300.WithEnvironment("B_URL", b.GetEndpoint("http")); 302.WithEnvironment("C_URL", c.GetEndpoint("http")); 303b.WithEnvironment("D_URL", d.GetEndpoint("http")); // Completes the cycle 305.WithEnvironment("B_URL", b.GetEndpoint("http")); 324.WithEnvironment("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference 607var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 608var b = builder.AddContainer("b", "alpine").WithEnvironment("Y_URL", y.GetEndpoint("http")); 627var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 628var b = builder.AddContainer("b", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 783.WithEnvironment("A_URL", a.GetEndpoint("http")); 786.WithEnvironment("B_URL", b.GetEndpoint("http")) 787.WithEnvironment("D_URL", d.GetEndpoint("http")); 788a.WithEnvironment("C_URL", c.GetEndpoint("http")); 838.WithEnvironment("Y_URL", y.GetEndpoint("http")); 840.WithEnvironment("Z_URL", z.GetEndpoint("http"));
WithEnvironmentTests.cs (1)
52.WithEnvironment("myName", projectA.GetEndpoint("mybinding"));
DevTunnels.AppHost (1)
AppHost.cs (1)
21frontend.WithEnvironment("TUNNEL_URL", devTunnelPortEndpoint);