32 references to EndpointAnnotation
Aspire.Hosting (18)
ApplicationModel\EndpointReference.cs (4)
125
public int? TargetPort =>
EndpointAnnotation
.TargetPort;
135
public string Scheme =>
EndpointAnnotation
.UriScheme;
143
EndpointAnnotation
.AllocatedEndpointSnapshot;
309
var endpointSnapshots = Endpoint.
EndpointAnnotation
.AllAllocatedEndpoints;
ApplicationModel\ProjectResource.cs (1)
111
var endpoint = e.
EndpointAnnotation
;
Dashboard\DashboardEventHandlers.cs (2)
619
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
665
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
Orchestrator\ApplicationOrchestrator.cs (2)
277
if (additionalUrl is not null && EndpointHostHelpers.IsLocalhostTld(additionalUrl.Endpoint?.
EndpointAnnotation
.TargetHost))
411
if (url.Endpoint?.
EndpointAnnotation
== primaryLaunchProfileEndpoint
ProjectResourceBuilderExtensions.cs (9)
907
if (!processedHttpsPort && e.
EndpointAnnotation
.UriScheme == "https")
916
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
952
if (e.
EndpointAnnotation
.UriScheme == scheme && e.
EndpointAnnotation
!= builder.Resource.DefaultHttpsEndpoint)
954
Debug.Assert(!e.
EndpointAnnotation
.FromLaunchProfile, "Endpoints from launch profile should never make it here");
983
if (e.
EndpointAnnotation
== builder.Resource.DefaultHttpsEndpoint)
991
builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.
EndpointAnnotation
, out var kestrelHost) ? kestrelHost : "*";
993
var url = ReferenceExpression.Create($"{e.
EndpointAnnotation
.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
996
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)
140
var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.
EndpointAnnotation
);
162
var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.
EndpointAnnotation
);
180
var ex = Assert.Throws<InvalidOperationException>(() => _ = endpointRef.
EndpointAnnotation
);
204
Assert.NotSame(httpTunnelEndpoint.
EndpointAnnotation
, httpsTunnelEndpoint.
EndpointAnnotation
);
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
287
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)
239
Assert.False(ep0.
EndpointAnnotation
.IsExternal);
240
Assert.True(ep1.
EndpointAnnotation
.IsExternal);
241
Assert.True(ep2.
EndpointAnnotation
.IsExternal);