264 references to GetEndpoint
AksDemo.AppHost (2)
AppHost.cs (2)
50.WithRoute("/api", api.GetEndpoint("http")) 58.WithRoute("/admin", api.GetEndpoint("http"));
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
1199/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 1231/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 2235var endpoint = builder.GetEndpoint(endpointName);
Aspire.Hosting.Azure.Kubernetes.Tests (4)
AzureKubernetesFoundryReferenceTests.cs (1)
50.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureKubernetesIngressTests.cs (3)
27ingress.WithPath("/", api.GetEndpoint("http")); 146ingress.WithPath("/", api.GetEndpoint("http")); 168gateway.WithRoute("/", api.GetEndpoint("http"));
Aspire.Hosting.Azure.Tests (43)
AzureAppServiceTests.cs (3)
368.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 1118var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 1150var expression = env.Resource.GetEndpointPropertyExpression(project.GetEndpoint("http").Property(property));
AzureContainerAppsTests.cs (15)
150.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 362var httpEp = project.GetEndpoint("http"); 363var httpsEp = project.GetEndpoint("https"); 364var internalEp = project.GetEndpoint("internal"); 366context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 367context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 368context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 439var httpEp = project.GetEndpoint("http"); 440var httpsEp = project.GetEndpoint("https"); 441var internalEp = project.GetEndpoint("internal"); 443context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 444context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 445context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 2756var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 2788var expression = env.Resource.GetEndpointPropertyExpression(project.GetEndpoint("http").Property(property));
AzureCosmosDBExtensionsTests.cs (3)
89var endpoint = cosmos.GetEndpoint("data-explorer"); 1229new() { Url = "http://localhost:8080", Endpoint = cosmos.GetEndpoint("emulatorhealth") } 1254new() { Url = "http://localhost:1234", Endpoint = cosmos.GetEndpoint("data-explorer") }
AzureProvisioningResourceExtensionsTests.cs (1)
20var endpointReference = apiProject.GetEndpoint("https");
AzureResourcePreparerTests.cs (6)
559.WithReference(agent.GetEndpoint("http")); 584.WithReference(agent.GetEndpoint("http")); 639.WithReference(agent1.GetEndpoint("http")) 640.WithReference(agent2.GetEndpoint("http")); 678.WithReference(agent.GetEndpoint("http")); 719.WithReference(agent.GetEndpoint("http"));
AzureSandboxesTests.cs (8)
2030Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http"), sandboxGroup.Resource, out var urlExpression)); 2035Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http").Property(EndpointProperty.TargetPort), sandboxGroup.Resource, out var targetPortExpression)); 2431var endpointExpression = ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1"); 2487.WithEnvironment("API_URL", ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1")) 2526.WithEnvironment("API_URL", api.GetEndpoint("http")) 2565first.WithEnvironment("SECOND_URL", second.GetEndpoint("http")); 2566second.WithEnvironment("FIRST_URL", first.GetEndpoint("http")); 2644$"https://{api.GetEndpoint("http").Property(EndpointProperty.HostAndPort)}/v1"))
AzureWebPubSubExtensionsTests.cs (4)
119wps.AddHub("abc").AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler/"); 189.AddEventHandler($"{serviceA.GetEndpoint("https")}/hub/eventhandler1") 190.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler2") 191.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler3", "event1", ["connect", "connected"]);
BicepUtilitiesTests.cs (1)
56.WithParameter("endpoint", container.GetEndpoint("http"));
FoundryExtensionsTests.cs (2)
388context.EnvironmentVariables["WEATHER_HEALTH_URL"] = ReferenceExpression.Create($"{weatherAgent.GetEndpoint("http")}/health"); 429context.EnvironmentVariables["WEATHER_HOST_AND_PORT"] = weatherAgent.GetEndpoint("http").Property(EndpointProperty.HostAndPort);
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");
WithBlazorAppTests.cs (3)
420.WithReference(weatherApi.GetEndpoint("public")); 461.WithReference(weatherApi.GetEndpoint("public")) 462.WithReference(weatherApi.GetEndpoint("admin"));
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
118context.Args.Add(c1.GetEndpoint("ep"));
Aspire.Hosting.DevTunnels.Tests (5)
DevTunnelResourceBuilderExtensionsTests.cs (5)
319var targetEndpoint = target.GetEndpoint("https"); 358var target2Endpoint = target2.GetEndpoint("https"); 421var targetEndpoint = target.GetEndpoint("http"); 549var targetEndpoint = target.GetEndpoint("http"); 653var targetEndpoint = target.GetEndpoint("http");
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
92.WithReference(api.GetEndpoint("http"));
DockerComposeTests.cs (1)
278var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
120context.EnvironmentVariables["KC_HTTPS_PORT"] = keycloak.GetEndpoint(KeycloakResource.PrimaryEndpointName).Property(EndpointProperty.TargetPort);
Aspire.Hosting.Kubernetes.Tests (52)
CertManagerTests.cs (1)
134.WithRoute("/", api.GetEndpoint("http"))
KubernetesEnvironmentResourceTests.cs (1)
127var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
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"));
KubernetesPublisherTests.cs (6)
46.WithReference(api.GetEndpoint("http")); 145.WithReference(api.GetEndpoint("http")); 669.WithReference(api.GetEndpoint("http")); 778.WithEnvironment("QDB_CLIENT_CONF", questdb.GetEndpoint("http")); 831ingress.WithPath("/api", api.GetEndpoint("http")); 832gateway.WithRoute("/api", api.GetEndpoint("http"));
Aspire.Hosting.Radius.Tests (4)
Publishing\ContainerEnvironmentEmissionTests.cs (3)
51.WithReference(backend.GetEndpoint("http")); 74.WithReference(backend.GetEndpoint("http")); 99.WithReference(backend.GetEndpoint("http"))
RadiusEnvironmentResourceTests.cs (1)
91var endpoint = api.GetEndpoint("http");
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
86var endpoint = redis.GetEndpoint(RedisResource.PrimaryEndpointName); 90endpoint = redis.GetEndpoint(RedisResource.SecondaryEndpointName);
Aspire.Hosting.Tests (88)
AddConnectionStringTests.cs (1)
80ReferenceExpression.Create($"Endpoint={redis.GetEndpoint("tcp")};key={key};{rwl}"));
ApplicationModel\EndpointHostHelpersTests.cs (2)
230var url = await EndpointHostHelpers.GetUrlWithTargetHostAsync(container.GetEndpoint("primary")) 255container.GetEndpoint("primary").EndpointAnnotation,
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"))
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))
ExecutableResourceTests.cs (2)
28var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.GetEndpoint("ep")) 38context.Args.Add(exe1.GetEndpoint("ep"));
ExpressionResolverTests.cs (1)
305.WithReference(dependency.GetEndpoint("hostEndpoint"));
HealthCheckTests.cs (2)
49container.WithHttpHealthCheck(() => container.GetEndpoint("nonhttp")); 90var endpoint = resource.GetEndpoint("http").EndpointAnnotation;
ProjectResourceTests.cs (1)
703context.Args.Add(c1.GetEndpoint("ep"));
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")}"));
WithEndpointTests.cs (3)
432var ep0 = container.GetEndpoint("ep0"); 433var ep1 = container.GetEndpoint("ep1"); 434var ep2 = container.GetEndpoint("ep2");
WithEnvironmentTests.cs (5)
53.WithEnvironment("myName", projectA.GetEndpoint("mybinding")); 236var endpoint = container.GetEndpoint("primary"); 285var endpoint = container.GetEndpoint("primary"); 318var endpoint = container.GetEndpoint("primary"); 451var endpoint = container.GetEndpoint("primary");
WithHttpCommandTests.cs (2)
185container.WithHttpCommand("/some-path", "Do The Thing", () => container.GetEndpoint("nonhttp")); 618return serviceA.GetEndpoint("http");
WithReferenceTests.cs (10)
26var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.GetEndpoint(endpointName)); 147.WithReference(projectA.GetEndpoint("mybinding")) 148.WithReference(projectA.GetEndpoint("myconflictingbinding")); 175.WithReference(projectA.GetEndpoint("mybinding")) 176.WithReference(projectA.GetEndpoint("mynonconflictingbinding")); 859.WithReference(projectA.GetEndpoint("management")); 889.WithReference(projectA.GetEndpoint("management")); 935var primaryRef = container.GetEndpoint("primary"); 936var managementRef = container.GetEndpoint("management"); 992.WithReference(projectA.GetEndpoint("data"));
Aspire.Hosting.Yarp.Tests (9)
YarpClusterTests.cs (6)
30var httpEndpoint = resource.GetEndpoint("testendpoint"); 31var httpsEndpoint = resource.GetEndpoint("anotherendpoint"); 48var httpEndpoint = resource.GetEndpoint("http"); 49var httpsEndpoint = resource.GetEndpoint("https"); 66var prometheusCluster = new YarpCluster(resource.GetEndpoint("prometheus")); 69var managementCluster = new YarpCluster(resource.GetEndpoint("management"));
YarpConfigGeneratorTests.cs (2)
279var backendCluster = yarp.AddCluster(backend.GetEndpoint("http")) 282yarp.AddRoute(frontend.GetEndpoint("http"))
YarpFunctionalTests.cs (1)
46configurator(yarp, backend.GetEndpoint("http"));
AspireWithMaui.AppHost (1)
AppHost.cs (1)
7.WithReference(weatherApi.GetEndpoint("https"));
AspireWithNode.AppHost (1)
AppHost.cs (1)
43var httpsEndpoint = frontend.GetEndpoint("https");
BlazorStandalone.AppHost (1)
AppHost.cs (1)
16.WithReference(timeApi.GetEndpoint("api"));
CertManagerDemo.AppHost (2)
AppHost.cs (2)
56.WithRoute("/api", api.GetEndpoint("http")) 63.WithRoute("/admin", api.GetEndpoint("http"));
DevTunnels.AppHost (3)
AppHost.cs (3)
11.WithReference(frontend.GetEndpoint("https")); 14.WithReference(frontend.GetEndpoint("https")) 15.WithReference(api.GetEndpoint("https"));
Stress.AppHost (10)
AppHost.cs (4)
21var manualArgEndpoint = manualArgSource.GetEndpoint("http"); 73.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 74.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 75.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");
CommandResources.cs (6)
924endpointSelector: () => serviceBuilder.GetEndpoint("http"), 929endpointSelector: () => serviceBuilder.GetEndpoint("http"), 934endpointSelector: () => serviceBuilder.GetEndpoint("http"), 939endpointSelector: () => serviceBuilder.GetEndpoint("http"), 944endpointSelector: () => serviceBuilder.GetEndpoint("http"), 949endpointSelector: () => serviceBuilder.GetEndpoint("http"),
TestShop.AppHost (2)
AppHost.cs (2)
124builder.AddRoute("/catalog/{**catch-all}", catalogService.GetEndpoint("http")) 127builder.AddRoute("/basket/{**catch-all}", basketService.GetEndpoint("http"))
WebPubSub.AppHost (1)
AppHost.cs (1)
14wps.AddHub("ChatForAspire").AddEventHandler($"{web.GetEndpoint("https")}/eventhandler/", systemEvents: ["connected"]);