27 references to EndpointAnnotation
Aspire.Hosting (15)
ApplicationModel\EndpointReference.cs (3)
97
public int? TargetPort =>
EndpointAnnotation
.TargetPort;
112
public string Scheme =>
EndpointAnnotation
.UriScheme;
120
EndpointAnnotation
.AllocatedEndpointSnapshot;
ApplicationModel\ProjectResource.cs (1)
28
var endpoint = e.
EndpointAnnotation
;
Dashboard\DashboardEventHandlers.cs (2)
590
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
615
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
ProjectResourceBuilderExtensions.cs (9)
762
if (!processedHttpsPort && e.
EndpointAnnotation
.UriScheme == "https")
771
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.
EndpointAnnotation
.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
807
if (e.
EndpointAnnotation
.UriScheme == scheme && e.
EndpointAnnotation
!= builder.Resource.DefaultHttpsEndpoint)
809
Debug.Assert(!e.
EndpointAnnotation
.FromLaunchProfile, "Endpoints from launch profile should never make it here");
838
if (e.
EndpointAnnotation
== builder.Resource.DefaultHttpsEndpoint)
846
builder.Resource.KestrelEndpointAnnotationHosts.TryGetValue(e.
EndpointAnnotation
, out var kestrelHost) ? kestrelHost : "*";
848
var url = ReferenceExpression.Create($"{e.
EndpointAnnotation
.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
851
context.EnvironmentVariables[$"Kestrel__Endpoints__{e.
EndpointAnnotation
.Name}__Url"] = url;
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.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);