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)
501
var httpEp = project.
GetEndpoint
("http");
502
var httpsEp = project.
GetEndpoint
("https");
503
var internalEp = project.
GetEndpoint
("internal");
505
context.EnvironmentVariables["HTTP_EP"] = project.
GetEndpoint
("http");
506
context.EnvironmentVariables["HTTPS_EP"] = project.
GetEndpoint
("https");
507
context.EnvironmentVariables["INTERNAL_EP"] = project.
GetEndpoint
("internal");
AzureProvisioningResourceExtensionsTests.cs (1)
22
var endpointReference = apiProject.
GetEndpoint
("https");
AzureWebPubSubExtensionsTests.cs (4)
198
wps.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)
70
context.Args.Add(c1.
GetEndpoint
("ep"));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
83
var endpoint = redis.
GetEndpoint
("tcp");
Aspire.Hosting.Tests (15)
ExecutableResourceTests.cs (2)
28
var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.
GetEndpoint
("ep"))
33
context.Args.Add(exe1.
GetEndpoint
("ep"));
ProjectResourceTests.cs (1)
582
context.Args.Add(c1.
GetEndpoint
("ep"));
WithEndpointTests.cs (4)
238
return container.
GetEndpoint
("ep").ContainerHost;
254
var ep0 = container.
GetEndpoint
("ep0");
255
var ep1 = container.
GetEndpoint
("ep1");
256
var ep2 = container.
GetEndpoint
("ep2");
WithEnvironmentTests.cs (3)
51
.WithEnvironment("myName", projectA.
GetEndpoint
("mybinding"));
189
var endpoint = container.
GetEndpoint
("primary");
225
var endpoint = container.
GetEndpoint
("primary");
WithReferenceTests.cs (5)
26
var 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)
12
wps.AddHub("ChatForAspire").AddEventHandler($"{web.
GetEndpoint
("https")}/eventhandler/", systemEvents: ["connected"]);