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