108 references to GetEndpoint
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
1384var endpoint = builder.GetEndpoint(endpointName);
Aspire.Hosting.Azure.Tests (21)
AzureAppServiceTests.cs (1)
757var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
AzureContainerAppsTests.cs (13)
308var httpEp = project.GetEndpoint("http"); 309var httpsEp = project.GetEndpoint("https"); 310var internalEp = project.GetEndpoint("internal"); 312context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 313context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 314context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 385var httpEp = project.GetEndpoint("http"); 386var httpsEp = project.GetEndpoint("https"); 387var internalEp = project.GetEndpoint("internal"); 389context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 390context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 391context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 2160var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
AzureCosmosDBExtensionsTests.cs (1)
87var endpoint = cosmos.GetEndpoint("data-explorer");
AzureProvisioningResourceExtensionsTests.cs (1)
20var endpointReference = apiProject.GetEndpoint("https");
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"));
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
118context.Args.Add(c1.GetEndpoint("ep"));
Aspire.Hosting.DevTunnels.Tests (2)
DevTunnelResourceBuilderExtensionsTests.cs (2)
117var targetEndpoint = target.GetEndpoint("https"); 156var target2Endpoint = target2.GetEndpoint("https");
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
89.WithReference(api.GetEndpoint("http"));
DockerComposeTests.cs (1)
224var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (4)
KubernetesEnvironmentResourceTests.cs (1)
108var endpointReferenceEx = env.Resource.GetHostAddressExpression(project.GetEndpoint("http"));
KubernetesPublisherTests.cs (3)
40.WithReference(api.GetEndpoint("http")); 137.WithReference(api.GetEndpoint("http")); 421.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
84var endpoint = redis.GetEndpoint(RedisResource.PrimaryEndpointName); 88endpoint = redis.GetEndpoint(RedisResource.SecondaryEndpointName);
Aspire.Hosting.Tests (57)
AddConnectionStringTests.cs (1)
80ReferenceExpression.Create($"Endpoint={redis.GetEndpoint("tcp")};key={key};{rwl}"));
Dcp\DcpExecutorTests.cs (4)
2194.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 2195.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 2201.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 2202.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").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)
268.WithReference(dependency.GetEndpoint("hostEndpoint"));
HealthCheckTests.cs (1)
48container.WithHttpHealthCheck(() => container.GetEndpoint("nonhttp"));
ProjectResourceTests.cs (1)
640context.Args.Add(c1.GetEndpoint("ep"));
ResourceDependencyTests.cs (32)
35.WithEnvironment("API_URL", api.GetEndpoint("http")); 52.WithEnvironment("API_PORT", api.GetEndpoint("http").Property(EndpointProperty.Port)); 239.WithEnvironment("C_HOST", c.GetEndpoint("redisc")); 241.WithEnvironment("B_HOST", b.GetEndpoint("httpb")); 301.WithEnvironment("B_URL", b.GetEndpoint("http")); 303.WithEnvironment("C_URL", c.GetEndpoint("http")); 304b.WithEnvironment("D_URL", d.GetEndpoint("http")); // Completes the cycle 306.WithEnvironment("B_URL", b.GetEndpoint("http")); 325.WithEnvironment("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference 390.WithReference(container.GetEndpoint("http")); // Reverse direction 474.WithReference(b.GetEndpoint("http")); 494.WithReference(b.GetEndpoint("http")); 515.WithReference(d.GetEndpoint("http")); 518.WithReference(c.GetEndpoint("http")); 520.WithReference(b.GetEndpoint("http")); 562.WithReference(b.GetEndpoint("http")) 585.WithReference(b.GetEndpoint("http")); 608var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 609var b = builder.AddContainer("b", "alpine").WithEnvironment("Y_URL", y.GetEndpoint("http")); 628var a = builder.AddContainer("a", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 629var b = builder.AddContainer("b", "alpine").WithEnvironment("X_URL", x.GetEndpoint("http")); 648.WithReference(b.GetEndpoint("http")); 671.WithReference(b.GetEndpoint("http")); 751.WithReference(b.GetEndpoint("http")); 758.WithReference(e.GetEndpoint("http")); 784.WithEnvironment("A_URL", a.GetEndpoint("http")); 787.WithEnvironment("B_URL", b.GetEndpoint("http")) 788.WithEnvironment("D_URL", d.GetEndpoint("http")); 789a.WithEnvironment("C_URL", c.GetEndpoint("http")); 839.WithEnvironment("Y_URL", y.GetEndpoint("http")); 841.WithEnvironment("Z_URL", z.GetEndpoint("http")); 864.WithReference(b.GetEndpoint("http"));
WithEndpointTests.cs (3)
236var ep0 = container.GetEndpoint("ep0"); 237var ep1 = container.GetEndpoint("ep1"); 238var 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)
71container.WithHttpCommand("/some-path", "Do The Thing", () => container.GetEndpoint("nonhttp")); 289return serviceA.GetEndpoint("http");
WithReferenceTests.cs (5)
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"));
Aspire.Hosting.Yarp.Tests (7)
YarpClusterTests.cs (4)
27var httpEndpoint = resource.GetEndpoint("testendpoint"); 28var httpsEndpoint = resource.GetEndpoint("anotherendpoint"); 45var httpEndpoint = resource.GetEndpoint("http"); 46var httpsEndpoint = resource.GetEndpoint("https");
YarpConfigGeneratorTests.cs (2)
279var backendCluster = yarp.AddCluster(backend.GetEndpoint("http")) 282yarp.AddRoute(frontend.GetEndpoint("http"))
YarpFunctionalTests.cs (1)
41configurator(yarp, backend.GetEndpoint("http"));
AspireWithMaui.AppHost (1)
AppHost.cs (1)
7.WithReference(weatherApi.GetEndpoint("https"));
AspireWithNode.AppHost (1)
AppHost.cs (1)
39var httpsEndpoint = frontend.GetEndpoint("https");
DevTunnels.AppHost (3)
AppHost.cs (3)
11.WithReference(frontend.GetEndpoint("https")); 14.WithReference(frontend.GetEndpoint("https")) 15.WithReference(api.GetEndpoint("https"));
Stress.AppHost (3)
Program.cs (3)
44.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 45.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 46.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");
TestShop.AppHost (2)
AppHost.cs (2)
105builder.AddRoute("/catalog/{**catch-all}", catalogService.GetEndpoint("http")) 108builder.AddRoute("/basket/{**catch-all}", basketService.GetEndpoint("http"))
WebPubSub.AppHost (1)
Program.cs (1)
14wps.AddHub("ChatForAspire").AddEventHandler($"{web.GetEndpoint("https")}/eventhandler/", systemEvents: ["connected"]);