47 references to GetEndpoint
Aspire.Hosting (5)
ResourceBuilderExtensions.cs (5)
538
/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
589
/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
609
/// Exposes an HTTP endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
629
/// Exposes an HTTPS endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.
GetEndpoint
{T}(IResourceBuilder{T}, string)"/>.
942
var endpoint = builder.
GetEndpoint
(endpointName);
Aspire.Hosting.Azure.Tests (19)
AzureBicepProvisionerTests.cs (1)
59
.WithParameter("endpoint", container.
GetEndpoint
("http"));
AzureContainerAppsTests.cs (12)
758
var httpEp = project.
GetEndpoint
("http");
759
var httpsEp = project.
GetEndpoint
("https");
760
var internalEp = project.
GetEndpoint
("internal");
762
context.EnvironmentVariables["HTTP_EP"] = project.
GetEndpoint
("http");
763
context.EnvironmentVariables["HTTPS_EP"] = project.
GetEndpoint
("https");
764
context.EnvironmentVariables["INTERNAL_EP"] = project.
GetEndpoint
("internal");
1096
var httpEp = project.
GetEndpoint
("http");
1097
var httpsEp = project.
GetEndpoint
("https");
1098
var internalEp = project.
GetEndpoint
("internal");
1100
context.EnvironmentVariables["HTTP_EP"] = project.
GetEndpoint
("http");
1101
context.EnvironmentVariables["HTTPS_EP"] = project.
GetEndpoint
("https");
1102
context.EnvironmentVariables["INTERNAL_EP"] = project.
GetEndpoint
("internal");
AzureCosmosDBExtensionsTests.cs (1)
83
var endpoint = cosmos.
GetEndpoint
("data-explorer");
AzureProvisioningResourceExtensionsTests.cs (1)
21
var endpointReference = apiProject.
GetEndpoint
("https");
AzureWebPubSubExtensionsTests.cs (4)
179
wps.AddHub("abc").AddEventHandler($"{serviceA.
GetEndpoint
("https")}/eventhandler/");
326
.AddEventHandler($"{serviceA.
GetEndpoint
("https")}/hub/eventhandler1")
327
.AddEventHandler($"{serviceA.
GetEndpoint
("https")}/eventhandler2")
328
.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)
60
.WithReference(api.
GetEndpoint
("http"));
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
70
.WithReference(api.
GetEndpoint
("http"));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
86
var endpoint = redis.
GetEndpoint
("tcp");
Aspire.Hosting.Tests (17)
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)
584
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 (1)
242
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"));
TestShop.AppHost (1)
Program.cs (1)
76
var _ = frontend.
GetEndpoint
("https").Exists ? frontend.WithHttpsHealthCheck("/health") : frontend.WithHttpHealthCheck("/health");
WebPubSub.AppHost (1)
Program.cs (1)
14
wps.AddHub("ChatForAspire").AddEventHandler($"{web.
GetEndpoint
("https")}/eventhandler/", systemEvents: ["connected"]);