62 references to GetEndpoint
Aspire.Hosting (5)
ResourceBuilderExtensions.cs (5)
673/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 724/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 744/// Exposes an HTTP endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 764/// Exposes an HTTPS endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 1077var endpoint = builder.GetEndpoint(endpointName);
Aspire.Hosting.Azure.Tests (19)
AzureContainerAppsTests.cs (12)
300var httpEp = project.GetEndpoint("http"); 301var httpsEp = project.GetEndpoint("https"); 302var internalEp = project.GetEndpoint("internal"); 304context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 305context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 306context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal"); 377var httpEp = project.GetEndpoint("http"); 378var httpsEp = project.GetEndpoint("https"); 379var internalEp = project.GetEndpoint("internal"); 381context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 382context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 383context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal");
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)
114context.Args.Add(c1.GetEndpoint("ep"));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
89.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
40.WithReference(api.GetEndpoint("http")); 136.WithReference(api.GetEndpoint("http"));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
84var endpoint = redis.GetEndpoint("tcp");
Aspire.Hosting.Tests (20)
ExecutableResourceTests.cs (2)
27var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.GetEndpoint("ep")) 37context.Args.Add(exe1.GetEndpoint("ep"));
HealthCheckTests.cs (1)
47container.WithHttpHealthCheck(() => container.GetEndpoint("nonhttp"));
ProjectResourceTests.cs (1)
591context.Args.Add(c1.GetEndpoint("ep"));
WithEndpointTests.cs (4)
237return container.GetEndpoint("ep").ContainerHost; 253var ep0 = container.GetEndpoint("ep0"); 254var ep1 = container.GetEndpoint("ep1"); 255var ep2 = container.GetEndpoint("ep2");
WithEnvironmentTests.cs (5)
52.WithEnvironment("myName", projectA.GetEndpoint("mybinding")); 232var endpoint = container.GetEndpoint("primary"); 281var endpoint = container.GetEndpoint("primary"); 307var endpoint = container.GetEndpoint("primary"); 440var 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)); 55.WithReference(projectA.GetEndpoint("mybinding")) 56.WithReference(projectA.GetEndpoint("myconflictingbinding")); 80.WithReference(projectA.GetEndpoint("mybinding")) 81.WithReference(projectA.GetEndpoint("mynonconflictingbinding"));
Aspire.Hosting.Yarp.Tests (7)
YarpClusterTests.cs (4)
19var httpEndpoint = resource.GetEndpoint("testendpoint"); 20var httpsEndpoint = resource.GetEndpoint("anotherendpoint"); 37var httpEndpoint = resource.GetEndpoint("http"); 38var httpsEndpoint = resource.GetEndpoint("https");
YarpConfigGeneratorTests.cs (2)
281var backendCluster = yarp.AddCluster(backend.GetEndpoint("http")) 284yarp.AddRoute(frontend.GetEndpoint("http"))
YarpFunctionalTests.cs (1)
40configurator(yarp, backend.GetEndpoint("http"));
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)
Program.cs (2)
91builder.AddRoute("/catalog/{**catch-all}", catalogService.GetEndpoint("http")) 94builder.AddRoute("/basket/{**catch-all}", basketService.GetEndpoint("http"))
WebPubSub.AppHost (1)
Program.cs (1)
14wps.AddHub("ChatForAspire").AddEventHandler($"{web.GetEndpoint("https")}/eventhandler/", systemEvents: ["connected"]);