43 references to GetEndpoint
Aspire.Hosting (9)
ApplicationModel\McpServerEndpointAnnotation.cs (1)
42var endpoint = resource.GetEndpoint(endpointName);
ApplicationModel\ResourceUrlsCallbackContext.cs (1)
32IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name),
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
386var mcpEndpoint = dashboardResource.GetEndpoint(McpEndpointName);
Backchannel\DashboardUrlsHelper.cs (3)
68var httpsEndpoint = dashboardResource.GetEndpoint("https"); 69var httpEndpoint = dashboardResource.GetEndpoint("http"); 77var mcpEndpoint = dashboardResource.GetEndpoint(McpEndpointName);
Dashboard\DashboardEventHandlers.cs (2)
395var httpsEndpoint = resourceWithEndpoints.GetEndpoint("https"); 396var httpEndpoint = resourceWithEndpoints.GetEndpoint("http");
ResourceBuilderExtensions.cs (1)
1067return builder.Resource.GetEndpoint(name);
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
291var blobEndpoint = storage.GetEndpoint("blob"); 292var tableEndpoint = storage.GetEndpoint("table");
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (2)
212var endpoint = resource.GetEndpoint("http"); 298var targetEndpoint = builder.Resource.GetEndpoint(useHttps ? "https" : "http");
Aspire.Hosting.Azure.Kusto (2)
AzureKustoClusterResource.cs (2)
54? ReferenceExpression.Create($"{this.GetEndpoint("http")}") 66var endpoint = this.GetEndpoint("http");
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
412var sqlEndpoint = sqlServerResource.Resource.GetEndpoint("tcp");
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
126context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
65context.EnvironmentVariables["TP"] = resource.GetEndpoint("http").Property(EndpointProperty.TargetPort); 66context.EnvironmentVariables["TPH2"] = resource.GetEndpoint("h2").Property(EndpointProperty.TargetPort);
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
525var targetEndpoint = resource.GetEndpoint("https"); 528targetEndpoint = resource.GetEndpoint("http");
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
279var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
204ctx.Args.Add(redis.GetEndpoint(RedisResource.PrimaryEndpointName).Property(EndpointProperty.Port)); 206ctx.Args.Add(redis.GetEndpoint(RedisResource.SecondaryEndpointName).Property(EndpointProperty.Port));
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
630var endpoint = redisCommander.GetEndpoint("http");
Aspire.Hosting.Tests (12)
Dashboard\DashboardResourceTests.cs (2)
668new() { Url = "http://localhost:5003", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("http") }, 669new() { Url = "https://localhost:5005", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("https") }
Dcp\DcpExecutorTests.cs (1)
2261var endpoint = resource.GetEndpoint(name).EndpointAnnotation;
EndpointReferenceTests.cs (1)
337var expression = destination.GetEndpoint(annotation.Name).Property(property);
ExecutableResourceTests.cs (1)
39context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (3)
640context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep")); 686var http = resource.GetEndpoint("http"); 687var https = resource.GetEndpoint("https");
WithUrlsTests.cs (4)
190projectA.WithUrl($"{projectA.Resource.GetEndpoint("https")}/test", "Example") 376var httpEndpoint = servicea.Resource.GetEndpoint("http"); 401var httpEndpoint = servicea.Resource.GetEndpoint("http"); 967Endpoint = resourceA.Resource.GetEndpoint("api")
Aspire.Hosting.Yarp (5)
YarpResourceExtensions.cs (5)
88.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port)) 89.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)}");
Aspire.Hosting.Yarp.Tests (1)
YarpFunctionalTests.cs (1)
51var endpoint = yarp.Resource.GetEndpoint("http");