1 write to EndpointAnnotation
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
80EndpointAnnotation = sba;
20 references to EndpointAnnotation
Aspire.Hosting (20)
Dcp\DcpExecutor.cs (20)
1027if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 1034if (!sp.EndpointAnnotation.IsProxied && svc.AllocatedPort is null) 1036throw new InvalidOperationException($"Service '{svc.Metadata.Name}' needs to specify a port for endpoint '{sp.EndpointAnnotation.Name}' since it isn't using a proxy."); 1039var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 1041sp.EndpointAnnotation.AllocatedEndpoint = new AllocatedEndpoint( 1042sp.EndpointAnnotation, 1056var port = sp.EndpointAnnotation.TargetPort!; 1059sp.EndpointAnnotation, 1066sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint); 1074var port = sp.EndpointAnnotation.TargetPort!; 1076sp.EndpointAnnotation, 1083sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, allocatedEndpoint); 1122string.Equals(swr.EndpointAnnotation.Name, endpoint.Name, StringComparisons.EndpointAnnotationName) 1132var port = _options.Value.EnableAspireContainerTunnel ? (int)ts.Service!.AllocatedPort! : serverSvc.EndpointAnnotation.AllocatedEndpoint!.Port; 1325string.Equals(swr.EndpointAnnotation.Name, endpoint.Name, StringComparisons.EndpointAnnotationName) 2458var ea = sp.EndpointAnnotation; 2978var ea = sp.EndpointAnnotation; 2990switch (sp.EndpointAnnotation.Protocol) 3000if (sp.EndpointAnnotation.TargetHost != KnownHostNames.Localhost) 3002portSpec.HostIP = sp.EndpointAnnotation.TargetHost;