34 references to GetEndpoint
Aspire.Hosting (5)
ApplicationModel\ResourceUrlsCallbackContext.cs (1)
31IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name),
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
90var mcpEndpoint = dashboardResource.GetEndpoint(McpEndpointName); 94mcpEndpoint = dashboardResource.GetEndpoint("https"); 97mcpEndpoint = dashboardResource.GetEndpoint("http");
ResourceBuilderExtensions.cs (1)
1039return builder.Resource.GetEndpoint(name);
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
279var blobEndpoint = storage.GetEndpoint("blob"); 280var tableEndpoint = storage.GetEndpoint("table");
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (2)
224var endpoint = resource.GetEndpoint("http"); 310var 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)
400var 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)
521var targetEndpoint = resource.GetEndpoint("https"); 524targetEndpoint = resource.GetEndpoint("http");
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
280var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
202ctx.Args.Add(redis.GetEndpoint(RedisResource.PrimaryEndpointName).Property(EndpointProperty.Port)); 204ctx.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 (7)
ExecutableResourceTests.cs (1)
39context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (3)
607context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep")); 653var http = resource.GetEndpoint("http"); 654var https = resource.GetEndpoint("https");
WithUrlsTests.cs (3)
190projectA.WithUrl($"{projectA.Resource.GetEndpoint("https")}/test", "Example") 376var httpEndpoint = servicea.Resource.GetEndpoint("http"); 401var httpEndpoint = servicea.Resource.GetEndpoint("http");
Aspire.Hosting.Yarp (5)
YarpResourceExtensions.cs (5)
82.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port)) 83.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");