92 references to GetEndpoint
Aspire.Hosting (11)
ApplicationModel\McpServerEndpointAnnotation.cs (1)
42var endpoint = resource.GetEndpoint(endpointName);
ApplicationModel\ResourceUrlsCallbackContext.cs (1)
35IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name),
Backchannel\DashboardUrlsHelper.cs (2)
93var httpsEndpoint = dashboardResource.GetEndpoint("https"); 94var httpEndpoint = dashboardResource.GetEndpoint("http");
Dashboard\DashboardEventHandlers.cs (3)
365var httpsEndpoint = dashboardResource.GetEndpoint("https"); 366var httpEndpoint = dashboardResource.GetEndpoint("http"); 423var endpoint = resourceWithEndpoints.GetEndpoint(endpointName);
OtlpConfigurationExtensions.cs (2)
310var grpcEndpoint = dashboardResource.GetEndpoint(KnownEndpointNames.OtlpGrpcEndpointName); 311var httpEndpoint = dashboardResource.GetEndpoint(KnownEndpointNames.OtlpHttpEndpointName);
ResourceBuilderExtensions.cs (2)
2220return builder.Resource.GetEndpoint(name); 2522return builder.WithUrlForEndpoint(resource.GetEndpoint(endpointName), callback);
Aspire.Hosting.Azure.ApiManagement (1)
AzureApiManagementExtensions.cs (1)
2418? endpointResource.GetEndpoint(source.EndpointName)
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
303var blobEndpoint = storage.GetEndpoint("blob"); 304var tableEndpoint = storage.GetEndpoint("table");
Aspire.Hosting.Azure.Functions (3)
AzureFunctionsProjectResourceExtensions.cs (3)
272var endpoint = resource.GetEndpoint("http"); 406var targetEndpoint = builder.Resource.GetEndpoint(useHttps ? "https" : "http"); 423var targetEndpoint = builder.Resource.GetEndpoint("http");
Aspire.Hosting.Azure.Kusto (2)
AzureKustoClusterResource.cs (2)
58? ReferenceExpression.Create($"{this.GetEndpoint("http")}") 70var endpoint = this.GetEndpoint("http");
Aspire.Hosting.Azure.Tests (2)
AzureSandboxesTests.cs (2)
2861project.GetEndpoint("http"), 2865project.GetEndpoint("https"),
Aspire.Hosting.Blazor (5)
BlazorGatewayExtensions.cs (3)
825gateway.WithReference(svcResource.GetEndpoint(endpointName)); 838var endpoint = resource.GetEndpoint(endpointName); 914var httpEndpoint = dashboardResource.GetEndpoint("otlp-http");
BlazorHostedExtensions.cs (1)
276var endpoint = resource.GetEndpoint(endpointName);
BrowserDebuggerHelper.cs (1)
115var endpointReference = parentResource.GetEndpoint(endpointAnnotation.Name);
Aspire.Hosting.Browsers (1)
BrowserLogsBuilderExtensions.cs (1)
333var endpointReference = resource.GetEndpoint(endpointAnnotation.Name);
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
333var endpointReference = resource.GetEndpoint(endpointAnnotation.Name);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
647new ContainerResource("frontend").GetEndpoint("https").BrowserOrigins); 653new ContainerResource("frontend").GetEndpoint("https").PrimaryBrowserOrigin);
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
120context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelMonitorTests.cs (1)
256var endpoint = test.Port.GetEndpoint(DevTunnelPortResource.TunnelEndpointName);
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
253context.EnvironmentVariables["TP"] = resource.GetEndpoint("http").Property(EndpointProperty.TargetPort); 254context.EnvironmentVariables["TPH2"] = resource.GetEndpoint("h2").Property(EndpointProperty.TargetPort);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
147Endpoint = ((IResourceWithEndpoints)resource).GetEndpoint("http")
Aspire.Hosting.JavaScript (7)
DenoHostingExtensions.cs (1)
1396var endpoint = endpointsResource.GetEndpoint("http");
JavaScriptHostingExtensions.cs (6)
1329? apiTarget.Resource.GetEndpoint(options.TargetEndpointName) 2014var targetEndpoint = resource.GetEndpoint("https"); 2017targetEndpoint = resource.GetEndpoint("http"); 2214var targetEndpoint = resource.GetEndpoint("https"); 2217targetEndpoint = resource.GetEndpoint("http"); 2939var endpointReference = parentResource.GetEndpoint(endpointAnnotation.Name);
Aspire.Hosting.JavaScript.Tests (4)
AddDenoAppTests.cs (4)
1085var httpEndpoint = denoApp.Resource.GetEndpoint("http"); 1109Assert.Null(denoApp.Resource.GetEndpoint("http").EndpointAnnotation.TargetPort); 1201var callerEndpoint = denoApp.Resource.GetEndpoint("http").EndpointAnnotation; 1235var httpEndpoint = denoApp2.Resource.GetEndpoint("http");
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
275var httpEndpoint = dashboardResource.GetEndpoint(KnownEndpointNames.OtlpHttpEndpointName); 296var grpcEndpoint = dashboardResource.GetEndpoint(KnownEndpointNames.OtlpGrpcEndpointName);
Aspire.Hosting.MongoDB.Tests (4)
MongoDbFunctionalTests.cs (1)
137var endpoint = mongoExpress.Resource.GetEndpoint("http");
ReplicaSet\MongoDbReplicaSetFunctionalTests.cs (2)
144var endpoint = mongoExpress.Resource.GetEndpoint("http"); 231var mongoExpressEndpoint = mongoExpress.Resource.GetEndpoint("http");
SingleMemberReplicaSetFunctionalTests.cs (1)
101using var httpClient = new HttpClient { BaseAddress = new Uri(mongoExpress.Resource.GetEndpoint("http").Url) };
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
288var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Redis (3)
RedisBuilderExtensions.cs (3)
210argsCtx.Args.Add(redis.GetEndpoint(RedisResource.PrimaryEndpointName).Property(EndpointProperty.TargetPort)); 212argsCtx.Args.Add(redis.GetEndpoint(RedisResource.SecondaryEndpointName).Property(EndpointProperty.TargetPort)); 248var endpoint = resource.GetEndpoint(resource.TlsEnabled ? RedisResource.SecondaryEndpointName : RedisResource.PrimaryEndpointName);
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
790var endpoint = redisCommander.GetEndpoint("http");
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
98var httpsEndpoint = dashboardResource.GetEndpoint("https"); 99var httpEndpoint = dashboardResource.GetEndpoint("http");
Aspire.Hosting.Tests (28)
Dashboard\DashboardResourceTests.cs (2)
854new() { Url = "http://localhost:5003", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("http") }, 855new() { Url = "https://localhost:5005", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("https") }
Dcp\DcpExecutorTests.cs (3)
4851var allocatedEndpoint = database.Resource.GetEndpoint("tcp").AllocatedEndpoint; 4996var endpoint = ((IResourceWithEndpoints)@event.Resource).GetEndpoint("NoPortTargetPortSet"); 10800var endpoint = resource.GetEndpoint(name).EndpointAnnotation;
DistributedApplicationTests.cs (1)
1785var endpoint = testProgram.ServiceABuilder.Resource.GetEndpoint("http");
EndpointReferenceTests.cs (11)
388var expression = destination.GetEndpoint(annotation.Name).Property(property); 523var endpoint = resource.GetEndpoint("https"); 544var endpoint = resource.GetEndpoint(scheme); 557var endpoint = resource.GetEndpoint("https"); 575resource.GetEndpoint("http").EndpointAnnotation.BrowserUrlsSnapshot.SetValue([new() { Url = "http://frontend.example" }]); 576resource.GetEndpoint("https").EndpointAnnotation.BrowserUrlsSnapshot.SetValue([new() { Url = "https://separate.example" }]); 578Assert.Equal("http://frontend.example", await resource.GetEndpoint("HTTP").BrowserOrigins.GetValueAsync()); 579Assert.Equal("https://separate.example", await resource.GetEndpoint("https").BrowserOrigins.GetValueAsync()); 605var endpoint = resource.GetEndpoint("http"); 627var endpoint = resource.GetEndpoint("http"); 642var value = resource.GetEndpoint("http").Property(property).GetValueAsync(cts.Token);
ExecutableResourceTests.cs (1)
40context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (3)
733context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep")); 779var http = resource.GetEndpoint("http"); 780var https = resource.GetEndpoint("https");
WithOtlpExporterTests.cs (1)
296var collectorEndpoint = collector.Resource.GetEndpoint("otlp-grpc");
WithUrlsTests.cs (6)
188Endpoint = innerResource.GetEndpoint("http"), 421projectA.WithUrl($"{projectA.Resource.GetEndpoint("https")}/test", "Example") 607var httpEndpoint = servicea.Resource.GetEndpoint("http"); 630var httpEndpoint = servicea.Resource.GetEndpoint("http"); 1106Endpoint = resourceA.Resource.GetEndpoint("api") 1158Endpoint = resourceA.Resource.GetEndpoint("api")
Aspire.Hosting.Yarp (5)
YarpResourceExtensions.cs (5)
72.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port)) 73.WithEnvironment("ASPNETCORE_URLS", $"{resource.GetEndpoint("https").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("https").Property(EndpointProperty.TargetPort)};{resource.GetEndpoint("http").Property(EndpointProperty.Scheme)}://*:{resource.GetEndpoint("http").Property(EndpointProperty.TargetPort)}");