1 write to EndpointAnnotation
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
98EndpointAnnotation = sba;
17 references to EndpointAnnotation
Aspire.Hosting (17)
Dcp\ContainerCreator.cs (1)
709var ea = sp.EndpointAnnotation;
Dcp\ContainerNetworkEndpointProvisioner.cs (1)
190StringComparers.EndpointAnnotationName.Equals(serviceWithResource.EndpointAnnotation.Name, endpoint.Name));
Dcp\DcpExecutor.cs (1)
776var endpoint = serviceProducer.EndpointAnnotation;
Dcp\DcpModelUtilities.cs (14)
104var ea = sp.EndpointAnnotation; 214if (sp.EndpointAnnotation.AllocatedEndpoint is not null) 219if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 231if (!sp.EndpointAnnotation.IsProxied && allocatedPort is null) 238throw new InvalidOperationException($"Service '{svc.Metadata.Name}' needs to specify a port for endpoint '{sp.EndpointAnnotation.Name}' since it isn't using a proxy."); 251var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 253sp.EndpointAnnotation.AllocatedEndpoint = new AllocatedEndpoint( 254sp.EndpointAnnotation, 280var port = sp.EndpointAnnotation.TargetPort!; 283sp.EndpointAnnotation, 290sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint); 304sp.EndpointAnnotation, 311sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, allocatedEndpoint); 358string.Equals(swr.EndpointAnnotation.Name, endpoint.Name, StringComparisons.EndpointAnnotationName)