34 references to EndpointAnnotation
Aspire.Hosting (19)
ApplicationModel\EndpointHostHelpers.cs (1)
135
var targetHost = endpoint.
EndpointAnnotation
.TargetHost;
ApplicationModel\EndpointReference.cs (4)
127
public int? TargetPort =>
EndpointAnnotation
.TargetPort;
137
public string Scheme =>
EndpointAnnotation
.UriScheme;
145
EndpointAnnotation
.AllocatedEndpointSnapshot;
312
var endpointSnapshots = Endpoint.
EndpointAnnotation
.AllAllocatedEndpoints;
ApplicationModel\ProjectResource.cs (1)
111
var endpoint = e.
EndpointAnnotation
;
Dashboard\DashboardEventHandlers.cs (2)
656
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
702
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
Orchestrator\ApplicationOrchestrator.cs (2)
275
if (additionalUrl is not null && EndpointHostHelpers.IsLocalhostTld(additionalUrl.Endpoint?.
EndpointAnnotation
.TargetHost))
409
if (url.Endpoint?.
EndpointAnnotation
== primaryLaunchProfileEndpoint
ProjectResourceBuilderExtensions.cs (9)
912
if (!processedHttpsPort && e.
EndpointAnnotation
.UriScheme == "https")
921
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
957
if (e.
EndpointAnnotation
.UriScheme == scheme && e.
EndpointAnnotation
!= builder.Resource.DefaultHttpsEndpoint)
959
Debug.Assert(!e.
EndpointAnnotation
.FromLaunchProfile, "Endpoints from launch profile should never make it here");
988
if (e.
EndpointAnnotation
== builder.Resource.DefaultHttpsEndpoint)
996
builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.
EndpointAnnotation
, out var kestrelHost) ? kestrelHost : "*";
998
var url = ReferenceExpression.Create($"{e.
EndpointAnnotation
.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
1001
context.EnvironmentVariables[$"Kestrel__Endpoints__{e.
EndpointAnnotation
.Name}__Url"] = url;
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppEnvironmentResource.cs (1)
249
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)
286
c.Args.Add(endpoint.
EndpointAnnotation
.TargetHost);
Aspire.Hosting.Tests (8)
Dashboard\DashboardLifecycleHookTests.cs (4)
141
httpEndpoint.
EndpointAnnotation
.AllocatedEndpoint = new(httpEndpoint.
EndpointAnnotation
, "localhost", 8080);
143
otlpGrpcEndpoint.
EndpointAnnotation
.AllocatedEndpoint = new(otlpGrpcEndpoint.
EndpointAnnotation
, "localhost", 4317);
Dcp\DcpExecutorTests.cs (1)
2261
var endpoint = resource.GetEndpoint(name).
EndpointAnnotation
;
WithEndpointTests.cs (3)
239
Assert.False(ep0.
EndpointAnnotation
.IsExternal);
240
Assert.True(ep1.
EndpointAnnotation
.IsExternal);
241
Assert.True(ep2.
EndpointAnnotation
.IsExternal);