17 references to EndpointAnnotation
Aspire.Hosting (14)
ApplicationModel\EndpointReference.cs (2)
83
public int? TargetPort =>
EndpointAnnotation
.TargetPort;
98
public string Scheme =>
EndpointAnnotation
.UriScheme;
ApplicationModel\ProjectResource.cs (1)
28
var endpoint = e.
EndpointAnnotation
;
Dashboard\DashboardLifecycleHook.cs (2)
604
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
629
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
ProjectResourceBuilderExtensions.cs (9)
756
if (!processedHttpsPort && e.
EndpointAnnotation
.UriScheme == "https")
765
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
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;
Aspire.Hosting.Tests (3)
WithEndpointTests.cs (3)
257
Assert.False(ep0.
EndpointAnnotation
.IsExternal);
258
Assert.True(ep1.
EndpointAnnotation
.IsExternal);
259
Assert.True(ep2.
EndpointAnnotation
.IsExternal);