51 references to GetEndpoint
Aspire.Hosting (5)
ResourceBuilderExtensions.cs (5)
555
/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
606
/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
626
/// Exposes an HTTP endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
646
/// Exposes an HTTPS endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
959
var endpoint = builder.
GetEndpoint
(endpointName);
Aspire.Hosting.Azure.Tests (19)
AzureBicepProvisionerTests.cs (1)
58
.WithParameter("endpoint", container.
GetEndpoint
("http"));
AzureContainerAppsTests.cs (12)
310
var httpEp = project.
GetEndpoint
("http");
311
var httpsEp = project.
GetEndpoint
("https");
312
var internalEp = project.
GetEndpoint
("internal");
314
context.EnvironmentVariables["HTTP_EP"] = project.
GetEndpoint
("http");
315
context.EnvironmentVariables["HTTPS_EP"] = project.
GetEndpoint
("https");
316
context.EnvironmentVariables["INTERNAL_EP"] = project.
GetEndpoint
("internal");
388
var httpEp = project.
GetEndpoint
("http");
389
var httpsEp = project.
GetEndpoint
("https");
390
var internalEp = project.
GetEndpoint
("internal");
392
context.EnvironmentVariables["HTTP_EP"] = project.
GetEndpoint
("http");
393
context.EnvironmentVariables["HTTPS_EP"] = project.
GetEndpoint
("https");
394
context.EnvironmentVariables["INTERNAL_EP"] = project.
GetEndpoint
("internal");
AzureCosmosDBExtensionsTests.cs (1)
82
var endpoint = cosmos.
GetEndpoint
("data-explorer");
AzureProvisioningResourceExtensionsTests.cs (1)
20
var endpointReference = apiProject.
GetEndpoint
("https");
AzureWebPubSubExtensionsTests.cs (4)
117
wps.AddHub("abc").AddEventHandler($"{serviceA.
GetEndpoint
("https")}/eventhandler/");
187
.AddEventHandler($"{serviceA.
GetEndpoint
("https")}/hub/eventhandler1")
188
.AddEventHandler($"{serviceA.
GetEndpoint
("https")}/eventhandler2")
189
.AddEventHandler($"{serviceA.
GetEndpoint
("https")}/eventhandler3", "event1", ["connect", "connected"]);
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
110
context.Args.Add(c1.
GetEndpoint
("ep"));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
67
.WithReference(api.
GetEndpoint
("http"));
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
38
.WithReference(api.
GetEndpoint
("http"));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
85
var endpoint = redis.
GetEndpoint
("tcp");
Aspire.Hosting.Tests (19)
ExecutableResourceTests.cs (2)
28
var exe2 = appBuilder.AddExecutable("e2", "python", ".", "app.py", exe1.
GetEndpoint
("ep"))
33
context.Args.Add(exe1.
GetEndpoint
("ep"));
HealthCheckTests.cs (1)
48
container.WithHttpHealthCheck(() => container.
GetEndpoint
("nonhttp"));
ProjectResourceTests.cs (1)
587
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 (4)
53
.WithEnvironment("myName", projectA.
GetEndpoint
("mybinding"));
233
var endpoint = container.
GetEndpoint
("primary");
282
var endpoint = container.
GetEndpoint
("primary");
308
var endpoint = container.
GetEndpoint
("primary");
WithHttpCommandTests.cs (2)
69
container.WithHttpCommand("/some-path", "Do The Thing", () => container.
GetEndpoint
("nonhttp"));
286
return serviceA.
GetEndpoint
("http");
WithReferenceTests.cs (5)
26
var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.
GetEndpoint
(endpointName));
56
.WithReference(projectA.
GetEndpoint
("mybinding"))
57
.WithReference(projectA.
GetEndpoint
("myconflictingbinding"));
81
.WithReference(projectA.
GetEndpoint
("mybinding"))
82
.WithReference(projectA.
GetEndpoint
("mynonconflictingbinding"));
Stress.AppHost (3)
Program.cs (3)
36
.WithEnvironment("HOST", $"{serviceBuilder.
GetEndpoint
("http").Property(EndpointProperty.Host)}")
37
.WithEnvironment("PORT", $"{serviceBuilder.
GetEndpoint
("http").Property(EndpointProperty.Port)}")
38
.WithEnvironment("URL", $"{serviceBuilder.
GetEndpoint
("http").Property(EndpointProperty.Url)}");
WebPubSub.AppHost (1)
Program.cs (1)
14
wps.AddHub("ChatForAspire").AddEventHandler($"{web.
GetEndpoint
("https")}/eventhandler/", systemEvents: ["connected"]);