1 write to EndpointAnnotation
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
80EndpointAnnotation = sba;
17 references to EndpointAnnotation
Aspire.Hosting (17)
Dcp\DcpExecutor.cs (17)
958if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 965if (!sp.EndpointAnnotation.IsProxied && svc.AllocatedPort is null) 967throw new InvalidOperationException($"Service '{svc.Metadata.Name}' needs to specify a port for endpoint '{sp.EndpointAnnotation.Name}' since it isn't using a proxy."); 970var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 972sp.EndpointAnnotation.AllocatedEndpoint = new AllocatedEndpoint( 973sp.EndpointAnnotation, 987var port = sp.EndpointAnnotation.TargetPort!; 990sp.EndpointAnnotation, 997sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint); 1037StringComparers.EndpointAnnotationName.Equals(swr.EndpointAnnotation.Name, endpoint.Name) 1047var port = _options.Value.EnableAspireContainerTunnel ? (int)ts.Service!.AllocatedPort! : serverSvc.EndpointAnnotation.AllocatedEndpoint!.Port; 1229StringComparers.EndpointAnnotationName.Equals(swr.EndpointAnnotation.Name, endpoint.Name) 2276var ea = sp.EndpointAnnotation; 2796var ea = sp.EndpointAnnotation; 2808switch (sp.EndpointAnnotation.Protocol) 2818if (sp.EndpointAnnotation.TargetHost != KnownHostNames.Localhost) 2820portSpec.HostIP = sp.EndpointAnnotation.TargetHost;