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