33 references to GetEndpoint
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
502/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 552/// Exposes an HTTP endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 572/// Exposes an HTTPS endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>.
Aspire.Hosting.Azure.Tests (12)
AzureBicepProvisionerTests.cs (1)
57.WithParameter("endpoint", container.GetEndpoint("http"));
AzureContainerAppsTests.cs (6)
501var httpEp = project.GetEndpoint("http"); 502var httpsEp = project.GetEndpoint("https"); 503var internalEp = project.GetEndpoint("internal"); 505context.EnvironmentVariables["HTTP_EP"] = project.GetEndpoint("http"); 506context.EnvironmentVariables["HTTPS_EP"] = project.GetEndpoint("https"); 507context.EnvironmentVariables["INTERNAL_EP"] = project.GetEndpoint("internal");
AzureProvisioningResourceExtensionsTests.cs (1)
22var endpointReference = apiProject.GetEndpoint("https");
AzureWebPubSubExtensionsTests.cs (4)
198wps.AddHub("abc").AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler/"); 371.AddEventHandler($"{serviceA.GetEndpoint("https")}/hub/eventhandler1") 372.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler2") 373.AddEventHandler($"{serviceA.GetEndpoint("https")}/eventhandler3", "event1", ["connect", "connected"]);
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
70context.Args.Add(c1.GetEndpoint("ep"));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
83var endpoint = redis.GetEndpoint("tcp");
Aspire.Hosting.Tests (15)
ExecutableResourceTests.cs (2)
28var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.GetEndpoint("ep")) 33context.Args.Add(exe1.GetEndpoint("ep"));
ProjectResourceTests.cs (1)
582context.Args.Add(c1.GetEndpoint("ep"));
WithEndpointTests.cs (4)
238return container.GetEndpoint("ep").ContainerHost; 254var ep0 = container.GetEndpoint("ep0"); 255var ep1 = container.GetEndpoint("ep1"); 256var ep2 = container.GetEndpoint("ep2");
WithEnvironmentTests.cs (3)
51.WithEnvironment("myName", projectA.GetEndpoint("mybinding")); 189var endpoint = container.GetEndpoint("primary"); 225var endpoint = container.GetEndpoint("primary");
WithReferenceTests.cs (5)
26var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.GetEndpoint(endpointName)); 48.WithReference(projectA.GetEndpoint("mybinding")) 49.WithReference(projectA.GetEndpoint("myconflictingbinding")); 73.WithReference(projectA.GetEndpoint("mybinding")) 74.WithReference(projectA.GetEndpoint("mynonconflictingbinding"));
WebPubSub.AppHost (1)
Program.cs (1)
12wps.AddHub("ChatForAspire").AddEventHandler($"{web.GetEndpoint("https")}/eventhandler/", systemEvents: ["connected"]);