264 references to GetEndpoint
AksDemo.AppHost (2)
Aspire.Hosting (3)
Aspire.Hosting.Azure.Kubernetes.Tests (4)
Aspire.Hosting.Azure.Tests (43)
Aspire.Hosting.Blazor.Tests (27)
GatewayConfigurationBuilderTests.cs (24)
24var gatewayEndpoint = gateway.GetEndpoint("https");
47var gatewayEndpoint = gateway.GetEndpoint("https");
69var gatewayEndpoint = gateway.GetEndpoint("https");
96var gatewayEndpoint = gateway.GetEndpoint("https");
122var gatewayEndpoint = gateway.GetEndpoint("https");
142var gatewayEndpoint = gateway.GetEndpoint("https");
168var gatewayEndpoint = gateway.GetEndpoint("https");
193var gatewayEndpoint = gateway.GetEndpoint("https");
219var gatewayEndpoint = gateway.GetEndpoint("https");
248var gatewayEndpoint = gateway.GetEndpoint("https");
269var gatewayEndpoint = gateway.GetEndpoint("https");
270var httpGatewayEndpoint = gateway.GetEndpoint("http");
296GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"));
320GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"));
342var gatewayEndpoint = gateway.GetEndpoint("https");
367var gatewayEndpoint = gateway.GetEndpoint("https");
399GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"), httpOtlpEndpoint: "http://localhost:18890");
458GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"), httpOtlpEndpoint: "http://localhost:4318");
486var gatewayEndpoint = gateway.GetEndpoint("https");
531var hostEndpoint = host.GetEndpoint("https");
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.DevTunnels.Tests (5)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Keycloak (1)
Aspire.Hosting.Kubernetes.Tests (52)
KubernetesGatewayTests.cs (19)
28gateway.WithRoute("/api", api.GetEndpoint("http"));
70gateway.WithRoute("api.example.com", "/", api.GetEndpoint("http"));
101gateway.WithRoute("/api", api.GetEndpoint("http"));
131gateway.WithRoute("/api", api.GetEndpoint("http"));
162gateway.WithRoute("/", api.GetEndpoint("http"));
189gateway.WithRoute("/", api.GetEndpoint("http"));
225gateway.WithRoute(hostname, "/", api.GetEndpoint("http"));
249.WithRoute("api.example.com", "/", api.GetEndpoint("http"))
284.WithRoute("api.example.com", "/", api.GetEndpoint("http"))
314gateway.WithRoute("example.com", "/api", api.GetEndpoint("http"));
315gateway.WithRoute("example.com", "/", web.GetEndpoint("http"));
317gateway.WithRoute("other.com", "/", api.GetEndpoint("http"));
405gateway.WithRoute("no-leading-slash", api.GetEndpoint("http")));
457.WithRoute("/", api.GetEndpoint("http"))
506.WithRoute("/", api.GetEndpoint("http"))
543gateway.WithRoute("/api", api.GetEndpoint("http"));
566gateway.WithRoute("api.example.com", "/", api.GetEndpoint("http"));
590gateway.WithRoute("/api", api.GetEndpoint("http"));
622gateway.WithRoute("/api", api.GetEndpoint("http"));
KubernetesIngressTests.cs (25)
28ingress.WithPath("/api", api.GetEndpoint("http"));
59ingress.WithPath("api.example.com", "/", api.GetEndpoint("http"));
103ingress.WithPath("/api", api.GetEndpoint("http"));
144ingress.WithPath("/api", api.GetEndpoint("http"));
172ingress.WithPath("/api", api.GetEndpoint("http"));
199ingress.WithPath("/api", api.GetEndpoint("http"));
223ingress.WithDefaultBackend(api.GetEndpoint("http"));
247.WithPath("api.example.com", "/", api.GetEndpoint("http"))
275.WithPath("api.example.com", "/", api.GetEndpoint("http"))
309ingress.WithPath("example.com", "/api", api.GetEndpoint("http"));
310ingress.WithPath("example.com", "/", web.GetEndpoint("http"));
338ingress.WithPath("/", api.GetEndpoint("http"));
362ingress.WithPath("/exact", api.GetEndpoint("http"), IngressPathType.Exact);
454ingress.WithPath("/", api.GetEndpoint("http"));
492ingress.WithPath("/", api.GetEndpoint("http"));
525ingress.WithPath("/", api.GetEndpoint("http"));
605publicIngress.WithPath("/", api.GetEndpoint("http"));
606internalIngress.WithPath("/admin", admin.GetEndpoint("http"));
641.WithDefaultBackend(web.GetEndpoint("http"))
675.WithPath("app.example.com", "/", web.GetEndpoint("http"))
676.WithDefaultBackend(web.GetEndpoint("http"))
702ingress.WithPath("no-leading-slash", api.GetEndpoint("http")));
743ingress.WithPath("/", api.GetEndpoint("http"));
766ingress.WithDefaultBackend(web.GetEndpoint("http"));
791ingress.WithPath("/", api.GetEndpoint("http"));
Aspire.Hosting.Radius.Tests (4)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Tests (88)
Dcp\DcpExecutorTests.cs (22)
373var endpoint = project.GetEndpoint("http");
416c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
1078var computeEndpoint = compute.GetEndpoint("tcp").EndpointAnnotation;
1120var endpoint = emulator.GetEndpoint("http").EndpointAnnotation;
3807Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
3823database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
3824database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
3871database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
3910var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(new ValueProviderContext
3956var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(context.CancellationToken).ConfigureAwait(false);
8831.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
8832.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
8838.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
8839.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9017c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9052c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9093c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
9329c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
9366.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
9401.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
9407.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
9464.WithEnvironment("UPSTREAM_PORT", upstreamExecutable.GetEndpoint("http").Property(EndpointProperty.Port))
ResourceDependencyTests.cs (34)
38.WithEnvironment("API_URL", api.GetEndpoint("http"));
55.WithEnvironment("API_PORT", api.GetEndpoint("http").Property(EndpointProperty.Port));
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"));
445b.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
531.WithReference(container.GetEndpoint("http")); // Reverse direction
615.WithReference(b.GetEndpoint("http"));
635.WithReference(b.GetEndpoint("http"));
656.WithReference(d.GetEndpoint("http"));
659.WithReference(c.GetEndpoint("http"));
661.WithReference(b.GetEndpoint("http"));
703.WithReference(b.GetEndpoint("http"))
726.WithReference(b.GetEndpoint("http"));
749var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http"));
750var b = builder.AddContainer("b", "alpine").WithEnvironment("Y_URL", y.GetEndpoint("http"));
769var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http"));
770var b = builder.AddContainer("b", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http"));
789.WithReference(b.GetEndpoint("http"));
812.WithReference(b.GetEndpoint("http"));
892.WithReference(b.GetEndpoint("http"));
899.WithReference(e.GetEndpoint("http"));
928.WithEnvironment("A_URL", a.GetEndpoint("http"));
931.WithEnvironment("B_URL", b.GetEndpoint("http"))
932.WithEnvironment("D_URL", d.GetEndpoint("http"));
933a.WithEnvironment("C_URL", c.GetEndpoint("http"));
983.WithEnvironment("Y_URL", y.GetEndpoint("http"));
985.WithEnvironment("Z_URL", z.GetEndpoint("http"));
1008.WithReference(b.GetEndpoint("http"));
1063ReferenceExpression.Create($"{primary.GetEndpoint("http")}"),
1064ReferenceExpression.Create($"{secondary.GetEndpoint("http")}"));
Aspire.Hosting.Yarp.Tests (9)
AspireWithMaui.AppHost (1)
AspireWithNode.AppHost (1)
BlazorStandalone.AppHost (1)
CertManagerDemo.AppHost (2)
DevTunnels.AppHost (3)
Stress.AppHost (10)
TestShop.AppHost (2)
WebPubSub.AppHost (1)