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