7 writes to PortUri
Aspire.Hosting.DevTunnels.Tests (7)
DevTunnelResourceBuilderExtensionsTests.cs (7)
284PortUri = new("https://mytunnel-5001.eun1.devtunnels.ms") 340PortUri = new("https://mytunnel-5001.devtunnels.ms") 522PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 610PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 658PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 700PortUri = new Uri($"{tunnelUrl}/") 755PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/")
8 references to PortUri
Aspire.Hosting.DevTunnels (8)
DevTunnelHealthCheck.cs (1)
39if (portStatus?.PortUri is null)
DevTunnelPortHealthCheck.cs (1)
33if (portStatus?.PortUri is null)
DevTunnelResourceBuilderExtensions.cs (6)
657portResource.LastKnownStatus?.PortUri is not null 694if (portResource.LastKnownStatus?.PortUri is { } portUri && GetInspectUrl(portUri) is { } inspectUrlString) 732if (tunnelStatus?.HostConnections is 0 or null || tunnelPortStatus?.PortUri is null) 752portResource.TunnelEndpointAnnotation.AllocatedEndpoint = new(portResource.TunnelEndpointAnnotation, tunnelPortStatus.PortUri.Host, 443 /* Always 443 for public tunnel endpoint */); 784portLogger.LogInformation("Forwarding from {PortUrl} to {TargetUrl} ({TargetResourceName}/{TargetEndpointName})", tunnelPortStatus.PortUri.ToString().TrimEnd('/'), portResource.TargetEndpoint.Url, portResource.TargetEndpoint.Resource.Name, portResource.TargetEndpoint.EndpointName); 870if (portResource.LastKnownStatus?.PortUri is not { } portUri)