326 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)
1511/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 1543/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 2554var endpoint = builder.GetEndpoint(endpointName);
Aspire.Hosting.Azure.Kubernetes.Tests (4)
AzureKubernetesFoundryReferenceTests.cs (1)
42.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureKubernetesIngressTests.cs (3)
26ingress.WithPath("/", api.GetEndpoint("http")); 150ingress.WithPath("/", api.GetEndpoint("http")); 172gateway.WithRoute("/", api.GetEndpoint("http"));
Aspire.Hosting.Azure.Tests (62)
AzureAppServiceTests.cs (3)
415.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 1163var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 1195var expression = env.Resource.GetEndpointPropertyExpression(project.GetEndpoint("http").Property(property));
AzureContainerAppExpressEndpointTests.cs (18)
34var endpoint = api.GetEndpoint("http"); 50context.EnvironmentVariables["SELF_TARGET_PORT"] = web.GetEndpoint("http").Property(EndpointProperty.TargetPort); 80var endpoint = api.GetEndpoint("http"); 130var expression = environment.Resource.GetEndpointPropertyExpression(api.GetEndpoint("http").Property(property)); 152environment.Resource.GetEndpointPropertyExpression(api.GetEndpoint("http").Property(property))); 158Assert.False(api.GetEndpoint("http").EndpointAnnotation.IsExternal); 175ReferenceExpression.Create($"prefix/{ReferenceExpression.Create($"{api.GetEndpoint("http")}")}"), 180web.WithReference(api.GetEndpoint("http")); 191Assert.False(api.GetEndpoint("http").EndpointAnnotation.IsExternal); 216web.WithReference(api.GetEndpoint("http")); 217web.WithEnvironment("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host)); 218web.WithEnvironment("EARLY_HOST", producerEnvironment.Resource.GetHostAddressExpression(api.GetEndpoint("http"))); 249var endpoint = api.GetEndpoint("http"); 286.WithReference(api.GetEndpoint("http")) 287.WithEnvironment("API_URL", api.GetEndpoint("http").Property(EndpointProperty.Url)); 311var endpoint = api.GetEndpoint("http"); 336first.WithReference(second.GetEndpoint("http")); 337second.WithReference(first.GetEndpoint("http"));
AzureContainerAppExpressTests.cs (1)
70.WithReference(api.GetEndpoint("http"));
AzureContainerAppsTests.cs (15)
175.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 387var httpEp = project.GetEndpoint("http"); 388var httpsEp = project.GetEndpoint("https"); 389var internalEp = project.GetEndpoint("internal"); 391context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 392context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 393context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 491var httpEp = project.GetEndpoint("http"); 492var httpsEp = project.GetEndpoint("https"); 493var internalEp = project.GetEndpoint("internal"); 495context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 496context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 497context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 2813var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 2845var expression = env.Resource.GetEndpointPropertyExpression(project.GetEndpoint("http").Property(property));
AzureCosmosDBExtensionsTests.cs (3)
89var endpoint = cosmos.GetEndpoint("data-explorer"); 1248new() { Url = "http://localhost:8080", Endpoint = cosmos.GetEndpoint("emulatorhealth") } 1273new() { Url = "http://localhost:1234", Endpoint = cosmos.GetEndpoint("data-explorer") }
AzureProvisioningResourceExtensionsTests.cs (1)
20var endpointReference = apiProject.GetEndpoint("https");
AzureResourcePreparerTests.cs (6)
558.WithReference(agent.GetEndpoint("http")); 583.WithReference(agent.GetEndpoint("http")); 638.WithReference(agent1.GetEndpoint("http")) 639.WithReference(agent2.GetEndpoint("http")); 677.WithReference(agent.GetEndpoint("http")); 718.WithReference(agent.GetEndpoint("http"));
AzureSandboxesTests.cs (8)
2211Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http"), sandboxGroup.Resource, out var urlExpression)); 2216Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http").Property(EndpointProperty.TargetPort), sandboxGroup.Resource, out var targetPortExpression)); 2922var endpointExpression = ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1"); 3052.WithEnvironment("API_URL", ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1")) 3092.WithEnvironment("API_URL", api.GetEndpoint("http")) 3132first.WithEnvironment("SECOND_URL", second.GetEndpoint("http")); 3133second.WithEnvironment("FIRST_URL", first.GetEndpoint("http")); 3211$"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)
57.WithParameter("endpoint", container.GetEndpoint("http"));
FoundryExtensionsTests.cs (2)
857context.EnvironmentVariables["WEATHER_HEALTH_URL"] = ReferenceExpression.Create($"{weatherAgent.GetEndpoint("http")}/health"); 897context.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 (7)
DevTunnelResourceBuilderExtensionsTests.cs (5)
423var targetEndpoint = target.GetEndpoint("https"); 462var target2Endpoint = target2.GetEndpoint("https"); 525var targetEndpoint = target.GetEndpoint("http"); 653var targetEndpoint = target.GetEndpoint("http"); 837var targetEndpoint = target.GetEndpoint("http");
TestDevTunnelMonitor.cs (2)
27var targetEndpoint = target.GetEndpoint("http"); 32var otherEndpoint = target.GetEndpoint("other");
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
92.WithReference(api.GetEndpoint("http"));
DockerComposeTests.cs (1)
276var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
1202.WithEnvironment("API_ENDPOINT", api.GetEndpoint("http"))
Aspire.Hosting.Foundry.Tests (2)
ToolboxTests.cs (2)
798.WithMcpTool("inventory", mcp.GetEndpoint("http")); 887.WithMcpTool("inventory", mcp.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)
45.WithReference(api.GetEndpoint("http")); 144.WithReference(api.GetEndpoint("http")); 774.WithReference(api.GetEndpoint("http")); 883.WithEnvironment("QDB_CLIENT_CONF", questdb.GetEndpoint("http")); 936ingress.WithPath("/api", api.GetEndpoint("http")); 937gateway.WithRoute("/api", api.GetEndpoint("http"));
Aspire.Hosting.Radius.Tests (28)
Publishing\BackingResourceContractTests.cs (6)
134var endpoint = cache.GetEndpoint("tcp"); 155() => environment.GetHostAddressExpression(cache.GetEndpoint("tcp"))); 158.GetEndpointPropertyExpression(cache.GetEndpoint("tcp").Property(EndpointProperty.Host))); 176() => environment.GetHostAddressExpression(pg.GetEndpoint("tcp"))); 192var expression = environment.GetHostAddressExpression(backend.GetEndpoint("http")); 214var endpoint = cache.GetEndpoint("tcp");
Publishing\BackingResourceProjectionTests.cs (4)
90.WithEnvironment("CUSTOM_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host)) 91.WithEnvironment("CUSTOM_PORT", cache.GetEndpoint("tcp").Property(EndpointProperty.Port)) 92.WithEnvironment("CUSTOM_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url)); 112.WithEnvironment("BACKEND_HOST", backend.GetEndpoint("http").Property(EndpointProperty.Host));
Publishing\BackingResourceValueResolutionTests.cs (11)
125.WithEnvironment("MISSING", backend.GetEndpoint("does-not-exist").Property(EndpointProperty.Host)) 126.WithEnvironment("PRESENT", backend.GetEndpoint("http").Property(EndpointProperty.Host)); 415.WithEnvironment("MGMT_URL", rabbit.GetEndpoint("management").Property(EndpointProperty.Url)); 434.WithEnvironment("AMQP_HOST", rabbit.GetEndpoint("tcp").Property(EndpointProperty.Host)); 967.WithEnvironment("CACHE_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url)); 986.WithEnvironment("CACHE_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host)) 987.WithEnvironment("CACHE_PORT", cache.GetEndpoint("tcp").Property(EndpointProperty.Port)); 1190var port = cache.GetEndpoint("tcp").Property(EndpointProperty.Port); 1217ReferenceExpression.Create($"primary-{cache.GetEndpoint("tcp").Property(EndpointProperty.Host)}"), 1254.WithEnvironment("BACKEND_URL", backend.GetEndpoint("custom")); 1476.WithEnvironment("STORE_HOST", store.GetEndpoint("tcp").Property(EndpointProperty.Host));
Publishing\ContainerEnvironmentEmissionTests.cs (3)
51.WithReference(backend.GetEndpoint("http")); 74.WithReference(backend.GetEndpoint("http")); 99.WithReference(backend.GetEndpoint("http"))
RadiusEnvironmentResourceTests.cs (4)
91var endpoint = api.GetEndpoint("http"); 121var endpoint = cache.GetEndpoint("tcp"); 146var endpoint = api.GetEndpoint("https"); 168var endpoint = cache.GetEndpoint("tcp");
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
86var endpoint = redis.GetEndpoint(RedisResource.PrimaryEndpointName); 90endpoint = redis.GetEndpoint(RedisResource.SecondaryEndpointName);
Aspire.Hosting.Tests (95)
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)
105.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")); 111.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")) 141.WithEnvironment("UPSTREAM_SERVICE_URL", upstreamService.GetEndpoint("http"))
Dcp\DcpExecutorTests.cs (25)
725var endpoint = project.GetEndpoint("http"); 768c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 1481var computeEndpoint = compute.GetEndpoint("tcp").EndpointAnnotation; 1523var endpoint = emulator.GetEndpoint("http").EndpointAnnotation; 4526Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync()); 4542database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4543database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4590database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort)); 4629var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(new ValueProviderContext 4675var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(context.CancellationToken).ConfigureAwait(false); 9608.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9609.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9615.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9616.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9794c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9829c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9870c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10106c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10143.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10174.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10208.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port)); 10628.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port)); 10684.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port)); 10690.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port)) 10747.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)
704context.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")); 1159.WithReference(projectA.GetEndpoint("management")); 1189.WithReference(projectA.GetEndpoint("management")); 1235var primaryRef = container.GetEndpoint("primary"); 1236var managementRef = container.GetEndpoint("management"); 1292.WithReference(projectA.GetEndpoint("data"));
WithUrlsTests.cs (4)
941managed.WithUrlForEndpoint(manager.GetEndpoint("http"), url => 961Assert.Equal($"{manager.GetEndpoint("http").Url.TrimEnd('/')}/admin", url.Url); 1003.WithUrlForEndpoint(manager.GetEndpoint("http"), url => url.DisplayText = "Manage"); 1006Endpoint = otherManager.GetEndpoint("http"),
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 (17)
AppHost.cs (4)
21var manualArgEndpoint = manualArgSource.GetEndpoint("http"); 74.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 75.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 76.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");
CommandResources.cs (13)
917endpointSelector: () => serviceBuilder.GetEndpoint("http"), 928endpointSelector: () => serviceBuilder.GetEndpoint("http"), 939endpointSelector: () => serviceBuilder.GetEndpoint("http"), 950endpointSelector: () => serviceBuilder.GetEndpoint("http"), 961endpointSelector: () => serviceBuilder.GetEndpoint("http"), 972endpointSelector: () => serviceBuilder.GetEndpoint("http"), 983endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1001endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1006endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1011endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1016endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1021endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1026endpointSelector: () => 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"]);