1 write to EndpointAnnotation
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
80EndpointAnnotation = sba;
20 references to EndpointAnnotation
Aspire.Hosting (20)
Dcp\DcpExecutor.cs (20)
1022if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 1029if (!sp.EndpointAnnotation.IsProxied && svc.AllocatedPort is null) 1031throw new InvalidOperationException($"Service '{svc.Metadata.Name}' needs to specify a port for endpoint '{sp.EndpointAnnotation.Name}' since it isn't using a proxy."); 1034var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 1036sp.EndpointAnnotation.AllocatedEndpoint = new AllocatedEndpoint( 1037sp.EndpointAnnotation, 1051var port = sp.EndpointAnnotation.TargetPort!; 1054sp.EndpointAnnotation, 1061sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint); 1069var port = sp.EndpointAnnotation.TargetPort!; 1071sp.EndpointAnnotation, 1078sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, allocatedEndpoint); 1117StringComparers.EndpointAnnotationName.Equals(swr.EndpointAnnotation.Name, endpoint.Name) 1127var port = _options.Value.EnableAspireContainerTunnel ? (int)ts.Service!.AllocatedPort! : serverSvc.EndpointAnnotation.AllocatedEndpoint!.Port; 1320StringComparers.EndpointAnnotationName.Equals(swr.EndpointAnnotation.Name, endpoint.Name) 2368var ea = sp.EndpointAnnotation; 2888var ea = sp.EndpointAnnotation; 2900switch (sp.EndpointAnnotation.Protocol) 2910if (sp.EndpointAnnotation.TargetHost != KnownHostNames.Localhost) 2912portSpec.HostIP = sp.EndpointAnnotation.TargetHost;