352 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.EntraId.Tests (17)
EntraIdPolyglotTests.cs (3)
278.WithRedirectUrisForExport(web.GetEndpoint("https"), ["/signin"]); 280Assert.False(web.GetEndpoint("https").IsAllocated); 477var endpoint = builder.AddContainer("web", "image").WithHttpEndpoint(targetPort: 8080).GetEndpoint("http");
EntraIdProvisioningTests.cs (13)
698entra.WithRedirectUris(web.GetEndpoint("http"), "/signin-oidc"); 882.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc", "/signout-callback-oidc"); 900.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc"); 913.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc"); 922var endpoint = web.GetEndpoint("https"); 983.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc"); 989var urls = new List<ResourceUrlAnnotation> { new() { Url = "/swagger", Endpoint = web.GetEndpoint("https") } }; 1010.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc"); 1018new() { Url = "https://localhost:7081", Endpoint = web.GetEndpoint("https"), DisplayLocation = UrlDisplayLocation.DetailsOnly }, 1019new() { Url = "https://other.dev.localhost:7082", Endpoint = other.GetEndpoint("https"), DisplayLocation = UrlDisplayLocation.SummaryAndDetails } 1038.WithRedirectUris(web.GetEndpoint("https"), "/signin-oidc"); 1090Assert.Throws<ArgumentException>("callbackPaths", () => entra.WithRedirectUris(web.GetEndpoint("https"))); 1091Assert.Throws<ArgumentException>("callbackPaths", () => entra.WithRedirectUris(web.GetEndpoint("https"), "signin-oidc"));
EntraIdStarterScenarioPublishTests.cs (1)
53webEntra.WithRedirectUris(webFrontend.GetEndpoint("https"), "/signin-oidc", "/signout-callback-oidc");
Aspire.Hosting.Azure.Kubernetes.Tests (4)
AzureKubernetesFoundryReferenceTests.cs (1)
68.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 (67)
AzureAppServiceTests.cs (3)
439.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 1187var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 1219var expression = env.Resource.GetEndpointPropertyExpression(project.GetEndpoint("http").Property(property));
AzureContainerAppExpressEndpointTests.cs (18)
38var endpoint = api.GetEndpoint("http"); 54context.EnvironmentVariables["SELF_TARGET_PORT"] = web.GetEndpoint("http").Property(EndpointProperty.TargetPort); 84var endpoint = api.GetEndpoint("http"); 134var expression = environment.Resource.GetEndpointPropertyExpression(api.GetEndpoint("http").Property(property)); 156environment.Resource.GetEndpointPropertyExpression(api.GetEndpoint("http").Property(property))); 162Assert.False(api.GetEndpoint("http").EndpointAnnotation.IsExternal); 179ReferenceExpression.Create($"prefix/{ReferenceExpression.Create($"{api.GetEndpoint("http")}")}"), 184web.WithReference(api.GetEndpoint("http")); 195Assert.False(api.GetEndpoint("http").EndpointAnnotation.IsExternal); 220web.WithReference(api.GetEndpoint("http")); 221web.WithEnvironment("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host)); 222web.WithEnvironment("EARLY_HOST", producerEnvironment.Resource.GetHostAddressExpression(api.GetEndpoint("http"))); 253var endpoint = api.GetEndpoint("http"); 290.WithReference(api.GetEndpoint("http")) 291.WithEnvironment("API_URL", api.GetEndpoint("http").Property(EndpointProperty.Url)); 315var endpoint = api.GetEndpoint("http"); 340first.WithReference(second.GetEndpoint("http")); 341second.WithReference(first.GetEndpoint("http"));
AzureContainerAppExpressTests.cs (1)
70.WithReference(api.GetEndpoint("http"));
AzureContainerAppsTests.cs (15)
202.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 416var httpEp = project.GetEndpoint("http"); 417var httpsEp = project.GetEndpoint("https"); 418var internalEp = project.GetEndpoint("internal"); 420context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 421context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 422context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 522var httpEp = project.GetEndpoint("http"); 523var httpsEp = project.GetEndpoint("https"); 524var internalEp = project.GetEndpoint("internal"); 526context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 527context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 528context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 2874var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http")); 2908var 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") }
AzureFrontDoorPrivateLinkTests.cs (1)
149.WithEnvironment("API_HOST", api.GetEndpoint("https").Property(EndpointProperty.Host));
AzureProvisioningResourceExtensionsTests.cs (1)
22var endpointReference = apiProject.GetEndpoint("https");
AzureResourcePreparerTests.cs (6)
674.WithReference(agent.GetEndpoint("http")); 699.WithReference(agent.GetEndpoint("http")); 754.WithReference(agent1.GetEndpoint("http")) 755.WithReference(agent2.GetEndpoint("http")); 793.WithReference(agent.GetEndpoint("http")); 834.WithReference(agent.GetEndpoint("http"));
AzureSandboxesTests.cs (8)
2212Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http"), sandboxGroup.Resource, out var urlExpression)); 2217Assert.True(AzureSandboxContainerDeployment.TryResolveEndpointReferenceValue(api.GetEndpoint("http").Property(EndpointProperty.TargetPort), sandboxGroup.Resource, out var targetPortExpression)); 2923var endpointExpression = ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1"); 3053.WithEnvironment("API_URL", ReferenceExpression.Create($"{api.GetEndpoint("http")}/v1")) 3093.WithEnvironment("API_URL", api.GetEndpoint("http")) 3133first.WithEnvironment("SECOND_URL", second.GetEndpoint("http")); 3134second.WithEnvironment("FIRST_URL", first.GetEndpoint("http")); 3212$"https://{api.GetEndpoint("http").Property(EndpointProperty.HostAndPort)}/v1"))
AzureWebPubSubEmulatorTests.cs (4)
41Assert.Equal(8080, webPubSub.GetEndpoint("emulator").TargetPort); 58var endpoint = api.GetEndpoint("http").EndpointAnnotation; 71.AddEventHandler($"{api.GetEndpoint("http")}/events/{{hub}}/{{event}}", systemEvents: ["connect", "connected", "disconnected"]) 151var endpoint = webPubSub.GetEndpoint("emulator").EndpointAnnotation;
AzureWebPubSubExtensionsTests.cs (4)
120wps.AddHub("abc").AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler/"); 237.AddEventHandler($"{serviceA.GetEndpoint("https")}/hub/eventhandler1") 238.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler2") 239.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler3", "event1", ["connect", "connected"]);
BicepUtilitiesTests.cs (1)
121.WithParameter("endpoint", container.GetEndpoint("http"));
FoundryExtensionsTests.cs (2)
858context.EnvironmentVariables["WEATHER_HEALTH_URL"] = ReferenceExpression.Create($"{weatherAgent.GetEndpoint("http")}/health"); 898context.EnvironmentVariables["WEATHER_HOST_AND_PORT"] = weatherAgent.GetEndpoint("http").Property(EndpointProperty.HostAndPort);
Aspire.Hosting.Blazor.Tests (27)
GatewayConfigurationBuilderTests.cs (24)
25var gatewayEndpoint = gateway.GetEndpoint("https"); 48var gatewayEndpoint = gateway.GetEndpoint("https"); 70var gatewayEndpoint = gateway.GetEndpoint("https"); 97var gatewayEndpoint = gateway.GetEndpoint("https"); 123var gatewayEndpoint = gateway.GetEndpoint("https"); 143var gatewayEndpoint = gateway.GetEndpoint("https"); 169var gatewayEndpoint = gateway.GetEndpoint("https"); 194var gatewayEndpoint = gateway.GetEndpoint("https"); 220var gatewayEndpoint = gateway.GetEndpoint("https"); 249var gatewayEndpoint = gateway.GetEndpoint("https"); 270var gatewayEndpoint = gateway.GetEndpoint("https"); 271var httpGatewayEndpoint = gateway.GetEndpoint("http"); 297GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http")); 321GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http")); 343var gatewayEndpoint = gateway.GetEndpoint("https"); 368var gatewayEndpoint = gateway.GetEndpoint("https"); 400GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"), httpOtlpEndpoint: "http://localhost:18890"); 459GatewayConfigurationBuilder.EmitProxyConfiguration(env, apps, gateway.GetEndpoint("https"), gateway.GetEndpoint("http"), httpOtlpEndpoint: "http://localhost:4318"); 487var gatewayEndpoint = gateway.GetEndpoint("https"); 532var hostEndpoint = host.GetEndpoint("https");
WithBlazorAppTests.cs (3)
421.WithReference(weatherApi.GetEndpoint("public")); 462.WithReference(weatherApi.GetEndpoint("public")) 463.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)
448var targetEndpoint = target.GetEndpoint("https"); 493var target2Endpoint = target2.GetEndpoint("https"); 562var targetEndpoint = target.GetEndpoint("http"); 694var targetEndpoint = target.GetEndpoint("http"); 880var 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)
93.WithReference(api.GetEndpoint("http"));
DockerComposeTests.cs (1)
281var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectBuildCoordinatorTests.cs (1)
1202.WithEnvironment("API_ENDPOINT", api.GetEndpoint("http"))
ProjectReferenceCompatibilityTests.cs (1)
63consumer.WithReference(source.GetEndpoint("admin"));
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)
478.WithRoute("/", api.GetEndpoint("http"))
KubernetesEnvironmentResourceTests.cs (1)
128var 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)
94.WithReference(api.GetEndpoint("http")); 194.WithReference(api.GetEndpoint("http")); 1003.WithReference(api.GetEndpoint("http")); 1112.WithEnvironment("QDB_CLIENT_CONF", questdb.GetEndpoint("http")); 1165ingress.WithPath("/api", api.GetEndpoint("http")); 1166gateway.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)
131.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")); 137.WithEnvironment("SERVICEA_URL", servicea.GetEndpoint("http")) 167.WithEnvironment("UPSTREAM_SERVICE_URL", upstreamService.GetEndpoint("http"))
Dcp\DcpExecutorTests.cs (25)
726var endpoint = project.GetEndpoint("http"); 769c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 1482var computeEndpoint = compute.GetEndpoint("tcp").EndpointAnnotation; 1524var endpoint = emulator.GetEndpoint("http").EndpointAnnotation; 4527Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync()); 4543database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4544database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4591database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort)); 4630var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(new ValueProviderContext 4676var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(context.CancellationToken).ConfigureAwait(false); 9609.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9610.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9616.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9617.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9795c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9830c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port); 9871c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10107c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10144.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10175.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10209.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port)); 10629.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port)); 10685.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port)); 10691.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port)) 10748.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)
328.WithReference(dependency.GetEndpoint("hostEndpoint"));
HealthCheckTests.cs (2)
49container.WithHttpHealthCheck(() => container.GetEndpoint("nonhttp")); 90var endpoint = resource.GetEndpoint("http").EndpointAnnotation;
ProjectResourceTests.cs (1)
709context.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)
257var ep0 = container.GetEndpoint("ep0"); 258var ep1 = container.GetEndpoint("ep1"); 259var ep2 = container.GetEndpoint("ep2");
WithEnvironmentTests.cs (5)
64var endpoint = container.GetEndpoint("primary"); 113var endpoint = container.GetEndpoint("primary"); 146var endpoint = container.GetEndpoint("primary"); 216.WithEnvironment("myName", projectA.GetEndpoint("mybinding")); 467var endpoint = container.GetEndpoint("primary");
WithHttpCommandTests.cs (2)
185container.WithHttpCommand("/some-path", "Do The Thing", () => container.GetEndpoint("nonhttp")); 618return serviceA.GetEndpoint("http");
WithReferenceTests.cs (10)
266var primaryRef = container.GetEndpoint("primary"); 267var managementRef = container.GetEndpoint("management"); 294var projectB = AddProject<ProjectB>(builder, "b").WithReference(projectA.GetEndpoint(endpointName)); 415.WithReference(projectA.GetEndpoint("mybinding")) 416.WithReference(projectA.GetEndpoint("myconflictingbinding")); 443.WithReference(projectA.GetEndpoint("mybinding")) 444.WithReference(projectA.GetEndpoint("mynonconflictingbinding")); 1217.WithReference(projectA.GetEndpoint("management")); 1247.WithReference(projectA.GetEndpoint("management")); 1308.WithReference(projectA.GetEndpoint("data"));
WithUrlsTests.cs (4)
213.WithUrlForEndpoint(manager.GetEndpoint("http"), url => url.DisplayText = "Manage"); 216Endpoint = otherManager.GetEndpoint("http"), 1034managed.WithUrlForEndpoint(manager.GetEndpoint("http"), url => 1054Assert.Equal($"{manager.GetEndpoint("http").Url.TrimEnd('/')}/admin", url.Url);
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)
9.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)
57.WithRoute("/api", api.GetEndpoint("http")) 64.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"));
EntraId.AppHost (3)
AppHost.cs (3)
64nodeWeb.WithEnvironment("NODE_WEB_BASE_URL", nodeWeb.GetEndpoint("https")); 69entraWeb.WithRedirectUris(webFrontend.GetEndpoint("https"), "/signin-oidc", "/signout-callback-oidc"); 70entraWeb.WithRedirectUris(nodeWeb.GetEndpoint("https"), "/auth/redirect", "/auth/signout-callback");
Stress.AppHost (17)
AppHost.cs (4)
22var manualArgEndpoint = manualArgSource.GetEndpoint("http"); 75.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 76.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 77.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");
CommandResources.cs (13)
918endpointSelector: () => serviceBuilder.GetEndpoint("http"), 929endpointSelector: () => serviceBuilder.GetEndpoint("http"), 940endpointSelector: () => serviceBuilder.GetEndpoint("http"), 951endpointSelector: () => serviceBuilder.GetEndpoint("http"), 962endpointSelector: () => serviceBuilder.GetEndpoint("http"), 973endpointSelector: () => serviceBuilder.GetEndpoint("http"), 984endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1002endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1007endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1012endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1017endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1022endpointSelector: () => serviceBuilder.GetEndpoint("http"), 1027endpointSelector: () => serviceBuilder.GetEndpoint("http"),
TestShop.AppHost (2)
AppHost.cs (2)
235builder.AddRoute("/catalog/{**catch-all}", catalogService.GetEndpoint("http")) 238builder.AddRoute("/basket/{**catch-all}", basketService.GetEndpoint("http"))
WebPubSub.AppHost (1)
AppHost.cs (1)
12var callbackEndpoint = web.GetEndpoint("https");