1 write to TargetEndpoint
Aspire.Hosting.DevTunnels (1)
DevTunnelResource.cs (1)
75
TargetEndpoint
= targetEndpoint;
38 references to TargetEndpoint
Aspire.Hosting.DevTunnels (22)
DevTunnelResource.cs (6)
102
if (
TargetEndpoint
.Resource.IsContainer())
107
??
TargetEndpoint
.Port;
110
if (
TargetEndpoint
.TargetPort is int targetPort)
116
??
TargetEndpoint
.Port;
124
resolvedTargetPort = await
TargetEndpoint
.Property(property).GetValueAsync(cancellationToken).ConfigureAwait(false);
126
catch (InvalidOperationException) when (property == EndpointProperty.TargetPort &&
TargetEndpoint
.IsAllocated)
DevTunnelResourceBuilderExtensions.cs (16)
168
await Task.WhenAll(tunnelResource.Ports.Select(p => p.
TargetEndpoint
.GetValueAsync(ct).AsTask())).ConfigureAwait(false);
215
portLogger.LogInformation("Configured dev tunnel port '{Port}' on tunnel '{Tunnel}' targeting endpoint '{Endpoint}' on resource '{TargetResource}'", tunnelPort, portResource.DevTunnel.TunnelId, portResource.
TargetEndpoint
.EndpointName, portResource.
TargetEndpoint
.Resource.Name);
441
.FirstOrDefault(p => p.
TargetEndpoint
.Resource == resource && string.Equals(p.
TargetEndpoint
.EndpointName, endpointName, StringComparisons.EndpointAnnotationName));
464
.FirstOrDefault(p => p.
TargetEndpoint
.Resource == targetEndpointReference.Resource
465
&& string.Equals(p.
TargetEndpoint
.EndpointName, targetEndpointReference.EndpointName, StringComparisons.EndpointAnnotationName));
522
foreach (var port in tunnelResource.Resource.Ports.Where(p => p.
TargetEndpoint
.Resource == targetResource.Resource))
525
var endpointName = port.
TargetEndpoint
.EndpointName;
534
var schemeKey = port.
TargetEndpoint
.IsHttpSchemeNamedEndpoint ? port.
TargetEndpoint
.Scheme : endpointName;
571
if (tunnel.Ports.FirstOrDefault(p => p.
TargetEndpoint
== targetEndpoint) is { } existingPort)
760
NormalizeUrl(portUri), portResource.
TargetEndpoint
.Url, portResource.
TargetEndpoint
.Resource.Name, portResource.
TargetEndpoint
.EndpointName);
906
if (GetAllocatedUrl(portResource.
TargetEndpoint
) is { Length: > 0 } localUrl)
Aspire.Hosting.DevTunnels.Tests (16)
DevTunnelMonitorTests.cs (1)
562
var otherPort = Assert.Single(test.Tunnel.Ports, p => p.
TargetEndpoint
.EndpointName == "other");
DevTunnelResourceBuilderExtensionsTests.cs (14)
127
tunnelPort.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(
128
tunnelPort.
TargetEndpoint
.EndpointAnnotation,
146
tunnelPort.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(
147
tunnelPort.
TargetEndpoint
.EndpointAnnotation,
166
tunnelPort.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(
167
tunnelPort.
TargetEndpoint
.EndpointAnnotation,
217
tunnelPort.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(
218
tunnelPort.
TargetEndpoint
.EndpointAnnotation,
257
tunnelPort.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(
258
tunnelPort.
TargetEndpoint
.EndpointAnnotation,
298
port.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(port.
TargetEndpoint
.EndpointAnnotation, "localhost", 5000);
360
port.
TargetEndpoint
.EndpointAnnotation.AllocatedEndpoint = new(port.
TargetEndpoint
.EndpointAnnotation, "localhost", 5000);
TestDevTunnelMonitor.cs (1)
36
Port = Assert.Single(Tunnel.Ports, p => p.
TargetEndpoint
.EndpointName == "http");