1 write to TunnelEndpointAnnotation
Aspire.Hosting.DevTunnels (1)
DevTunnelResource.cs (1)
76
TunnelEndpointAnnotation
= new EndpointAnnotation(
17 references to TunnelEndpointAnnotation
Aspire.Hosting.DevTunnels (10)
DevTunnelMonitor.cs (3)
585
if (port.
TunnelEndpointAnnotation
.AllocatedEndpoint is null)
587
port.
TunnelEndpointAnnotation
.AllocatedEndpoint = new(port.
TunnelEndpointAnnotation
, uri.Host, 443);
DevTunnelResource.cs (1)
82
TunnelEndpoint = new(targetEndpoint.Resource,
TunnelEndpointAnnotation
);
DevTunnelResourceBuilderExtensions.cs (6)
161
portResource.
TunnelEndpointAnnotation
.AllocatedEndpointSnapshot.SetException(exception);
221
portResource.
TunnelEndpointAnnotation
.AllocatedEndpointSnapshot.SetException(ex);
619
portResource.Annotations.Add(portResource.
TunnelEndpointAnnotation
);
737
var previousAddress = portResource.
TunnelEndpointAnnotation
.AllocatedEndpoint?.Address;
738
portResource.
TunnelEndpointAnnotation
.AllocatedEndpoint = new(portResource.
TunnelEndpointAnnotation
, portUri.Host, 443);
Aspire.Hosting.DevTunnels.Tests (7)
DevTunnelMonitorTests.cs (4)
25
Assert.Equal("original-3000.usw2.devtunnels.ms", test.Port.
TunnelEndpointAnnotation
.AllocatedEndpoint?.Address);
67
Assert.Null(test.Port.
TunnelEndpointAnnotation
.AllocatedEndpoint);
170
Assert.Equal("replacement-3000.usw2.devtunnels.ms", test.Port.
TunnelEndpointAnnotation
.AllocatedEndpoint?.Address);
741
Assert.Equal("service-assigned-name.usw2.devtunnels.ms", test.Port.
TunnelEndpointAnnotation
.AllocatedEndpoint?.Address);
DevTunnelResourceBuilderExtensionsTests.cs (3)
35
tunnelPort.
TunnelEndpointAnnotation
.AllocatedEndpoint = new(tunnelPort.
TunnelEndpointAnnotation
, "test123.devtunnels.ms", 443);
810
Assert.Equal("n4skq32k-3000.use.devtunnels.ms", tunnelPort.
TunnelEndpointAnnotation
.AllocatedEndpoint?.Address);