15 references to EndpointAnnotation
Aspire.Hosting (12)
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 (9)
754
if (!processedHttpsPort && e.
EndpointAnnotation
.UriScheme == "https")
763
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
799
if (e.
EndpointAnnotation
.UriScheme == scheme && e.
EndpointAnnotation
!= builder.Resource.DefaultHttpsEndpoint)
801
Debug.Assert(!e.
EndpointAnnotation
.FromLaunchProfile, "Endpoints from launch profile should never make it here");
830
if (e.
EndpointAnnotation
== builder.Resource.DefaultHttpsEndpoint)
838
builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.
EndpointAnnotation
, out var kestrelHost) ? kestrelHost : "*";
840
var url = ReferenceExpression.Create($"{e.
EndpointAnnotation
.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
843
context.EnvironmentVariables[$"Kestrel__Endpoints__{e.
EndpointAnnotation
.Name}__Url"] = url;
Aspire.Hosting.Tests (3)
WithEndpointTests.cs (3)
258
Assert.False(ep0.
EndpointAnnotation
.IsExternal);
259
Assert.True(ep1.
EndpointAnnotation
.IsExternal);
260
Assert.True(ep2.
EndpointAnnotation
.IsExternal);