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