13 references to EndpointAnnotation
Aspire.Hosting (13)
ApplicationModel\EndpointReference.cs (2)
83public int? TargetPort => EndpointAnnotation.TargetPort; 98public string Scheme => EndpointAnnotation.UriScheme;
ApplicationModel\ProjectResource.cs (1)
27var endpoint = e.EndpointAnnotation;
ProjectResourceBuilderExtensions.cs (10)
753if (!processedHttpsPort && e.EndpointAnnotation.UriScheme == "https") 763var targetHost = e.EndpointAnnotation.IsProxied && builder.Resource.SupportsProxy() ? "localhost" : e.EndpointAnnotation.TargetHost; 801if (e.EndpointAnnotation.UriScheme == scheme && e.EndpointAnnotation != builder.Resource.DefaultHttpsEndpoint) 803Debug.Assert(!e.EndpointAnnotation.FromLaunchProfile, "Endpoints from launch profile should never make it here"); 832if (e.EndpointAnnotation == builder.Resource.DefaultHttpsEndpoint) 840builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.EndpointAnnotation, out var kestrelHost) ? kestrelHost : "*"; 842var url = ReferenceExpression.Create($"{e.EndpointAnnotation.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}"); 845context.EnvironmentVariables[$"Kestrel__Endpoints__{e.EndpointAnnotation.Name}__Url"] = url;