31 references to EndpointAnnotation
Aspire.Hosting (17)
ApplicationModel\EndpointReference.cs (3)
97public int? TargetPort => EndpointAnnotation.TargetPort; 112public string Scheme => EndpointAnnotation.UriScheme; 120EndpointAnnotation.AllocatedEndpointSnapshot;
ApplicationModel\ProjectResource.cs (1)
69var endpoint = e.EndpointAnnotation;
Dashboard\DashboardEventHandlers.cs (2)
613ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}"); 658aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
Orchestrator\ApplicationOrchestrator.cs (2)
265if (additionalUrl is not null && EndpointHostHelpers.IsLocalhostTld(additionalUrl.Endpoint?.EndpointAnnotation.TargetHost)) 357if (url.Endpoint?.EndpointAnnotation == primaryLaunchProfileEndpoint && !string.Equals(url.Url, primaryUrl.Url, StringComparisons.Url))
ProjectResourceBuilderExtensions.cs (9)
911if (!processedHttpsPort && e.EndpointAnnotation.UriScheme == "https") 920aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}"); 956if (e.EndpointAnnotation.UriScheme == scheme && e.EndpointAnnotation != builder.Resource.DefaultHttpsEndpoint) 958Debug.Assert(!e.EndpointAnnotation.FromLaunchProfile, "Endpoints from launch profile should never make it here"); 987if (e.EndpointAnnotation == builder.Resource.DefaultHttpsEndpoint) 995builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.EndpointAnnotation, out var kestrelHost) ? kestrelHost : "*"; 997var url = ReferenceExpression.Create($"{e.EndpointAnnotation.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}"); 1000context.EnvironmentVariables[$"Kestrel__Endpoints__{e.EndpointAnnotation.Name}__Url"] = url;
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppEnvironmentResource.cs (1)
202if (!endpointReference.EndpointAnnotation.IsExternal)
Aspire.Hosting.DevTunnels.Tests (5)
DevTunnelResourceBuilderExtensionsTests.cs (5)
137var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.EndpointAnnotation); 159var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.EndpointAnnotation); 177var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.EndpointAnnotation); 201Assert.NotSame(httpTunnelEndpoint.EndpointAnnotation, httpsTunnelEndpoint.EndpointAnnotation);
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
267c.Args.Add(endpoint.EndpointAnnotation.TargetHost);
Aspire.Hosting.Tests (7)
Dashboard\DashboardLifecycleHookTests.cs (4)
141httpEndpoint.EndpointAnnotation.AllocatedEndpoint = new(httpEndpoint.EndpointAnnotation, "localhost", 8080); 143otlpGrpcEndpoint.EndpointAnnotation.AllocatedEndpoint = new(otlpGrpcEndpoint.EndpointAnnotation, "localhost", 4317);
WithEndpointTests.cs (3)
257Assert.False(ep0.EndpointAnnotation.IsExternal); 258Assert.True(ep1.EndpointAnnotation.IsExternal); 259Assert.True(ep2.EndpointAnnotation.IsExternal);