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)
62var ea = sp.EndpointAnnotation; 172if (sp.EndpointAnnotation.AllocatedEndpoint is not null) 177if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 189if (!sp.EndpointAnnotation.IsProxied && allocatedPort is null) 196throw new InvalidOperationException($"Service '{svc.Metadata.Name}' needs to specify a port for endpoint '{sp.EndpointAnnotation.Name}' since it isn't using a proxy."); 209var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 211sp.EndpointAnnotation.AllocatedEndpoint = new AllocatedEndpoint( 212sp.EndpointAnnotation, 238var port = sp.EndpointAnnotation.TargetPort!; 241sp.EndpointAnnotation, 248sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint); 262sp.EndpointAnnotation, 269sp.EndpointAnnotation.AllAllocatedEndpoints.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, allocatedEndpoint); 316string.Equals(swr.EndpointAnnotation.Name, endpoint.Name, StringComparisons.EndpointAnnotationName)