71 references to GetEndpoint
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
1329var endpoint = builder.GetEndpoint(endpointName);
Aspire.Hosting.Azure.Tests (21)
AzureAppServiceTests.cs (1)
681var endpointReferenceEx = ((IComputeEnvironmentResource)env.Resource).GetHostAddressExpression(project.GetEndpoint("http"));
AzureContainerAppsTests.cs (13)
307var httpEp = project.GetEndpoint("http"); 308var httpsEp = project.GetEndpoint("https"); 309var internalEp = project.GetEndpoint("internal"); 311context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 312context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 313context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 384var httpEp = project.GetEndpoint("http"); 385var httpsEp = project.GetEndpoint("https"); 386var internalEp = project.GetEndpoint("internal"); 388context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 389context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 390context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 2047var endpointReferenceEx = ((IComputeEnvironmentResource)env.Resource).GetHostAddressExpression(project.GetEndpoint("http"));
AzureCosmosDBExtensionsTests.cs (1)
84var 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)
124context.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)
221var endpointReferenceEx = ((IComputeEnvironmentResource)env.Resource).GetHostAddressExpression(project.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (3)
KubernetesEnvironmentResourceTests.cs (1)
107var endpointReferenceEx = ((IComputeEnvironmentResource)env.Resource).GetHostAddressExpression(project.GetEndpoint("http"));
KubernetesPublisherTests.cs (2)
40.WithReference(api.GetEndpoint("http")); 137.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 (21)
AddConnectionStringTests.cs (1)
79ReferenceExpression.Create($"Endpoint={redis.GetEndpoint("tcp")};key={key};{rwl}"));
ExecutableResourceTests.cs (2)
27var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.GetEndpoint("ep")) 37context.Args.Add(exe1.GetEndpoint("ep"));
ExpressionResolverTests.cs (1)
264.WithReference(dependency.GetEndpoint("hostEndpoint"));
HealthCheckTests.cs (1)
47container.WithHttpHealthCheck(() => container.GetEndpoint("nonhttp"));
ProjectResourceTests.cs (1)
606context.Args.Add(c1.GetEndpoint("ep"));
WithEndpointTests.cs (3)
235var ep0 = container.GetEndpoint("ep0"); 236var ep1 = container.GetEndpoint("ep1"); 237var ep2 = container.GetEndpoint("ep2");
WithEnvironmentTests.cs (5)
52.WithEnvironment("myName", projectA.GetEndpoint("mybinding")); 233var endpoint = container.GetEndpoint("primary"); 282var endpoint = container.GetEndpoint("primary"); 317var endpoint = container.GetEndpoint("primary"); 450var endpoint = container.GetEndpoint("primary");
WithHttpCommandTests.cs (2)
68container.WithHttpCommand("/some-path", "Do The Thing", () => container.GetEndpoint("nonhttp")); 268return serviceA.GetEndpoint("http");
WithReferenceTests.cs (5)
25var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.GetEndpoint(endpointName)); 146.WithReference(projectA.GetEndpoint("mybinding")) 147.WithReference(projectA.GetEndpoint("myconflictingbinding")); 174.WithReference(projectA.GetEndpoint("mybinding")) 175.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)
280var backendCluster = yarp.AddCluster(backend.GetEndpoint("http")) 283yarp.AddRoute(frontend.GetEndpoint("http"))
YarpFunctionalTests.cs (1)
40configurator(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"]);