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