42 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)
387var 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)
381var httpsEndpoint = resourceWithEndpoints.GetEndpoint("https"); 382var httpEndpoint = resourceWithEndpoints.GetEndpoint("http");
ResourceBuilderExtensions.cs (1)
1087return 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)
217var endpoint = resource.GetEndpoint("http"); 303var 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)
428var sqlEndpoint = sqlServerResource.Resource.GetEndpoint("tcp");
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
120context.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)
187argsCtx.Args.Add(redis.GetEndpoint(RedisResource.PrimaryEndpointName).Property(EndpointProperty.Port)); 189argsCtx.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)
2277var endpoint = resource.GetEndpoint(name).EndpointAnnotation;
EndpointReferenceTests.cs (1)
352var expression = destination.GetEndpoint(annotation.Name).Property(property);
ExecutableResourceTests.cs (1)
40context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (3)
641context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep")); 687var http = resource.GetEndpoint("http"); 688var https = resource.GetEndpoint("https");
WithUrlsTests.cs (4)
191projectA.WithUrl($"{projectA.Resource.GetEndpoint("https")}/test", "Example") 377var httpEndpoint = servicea.Resource.GetEndpoint("http"); 402var httpEndpoint = servicea.Resource.GetEndpoint("http"); 968Endpoint = resourceA.Resource.GetEndpoint("api")
Aspire.Hosting.Yarp (5)
YarpResourceExtensions.cs (5)
70.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port)) 71.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)}");