6 writes to PortUri
Aspire.Hosting.DevTunnels.Tests (6)
DevTunnelResourceBuilderExtensionsTests.cs (6)
243PortUri = new("https://mytunnel-5001.devtunnels.ms") 425PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 513PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 561PortUri = new Uri("https://n4skq32k-3000.use.devtunnels.ms/") 603PortUri = new Uri($"{tunnelUrl}/") 658PortUri = 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)
622portResource.LastKnownStatus?.PortUri is not null 659if (portResource.LastKnownStatus?.PortUri is { } portUri && GetInspectUrl(portUri) is { } inspectUrlString) 697if (tunnelStatus?.HostConnections is 0 or null || tunnelPortStatus?.PortUri is null) 717portResource.TunnelEndpointAnnotation.AllocatedEndpoint = new(portResource.TunnelEndpointAnnotation, tunnelPortStatus.PortUri.Host, 443 /* Always 443 for public tunnel endpoint */); 749portLogger.LogInformation("Forwarding from {PortUrl} to {TargetUrl} ({TargetResourceName}/{TargetEndpointName})", tunnelPortStatus.PortUri.ToString().TrimEnd('/'), portResource.TargetEndpoint.Url, portResource.TargetEndpoint.Resource.Name, portResource.TargetEndpoint.EndpointName); 835if (portResource.LastKnownStatus?.PortUri is not { } portUri)