19 references to TunnelId
Aspire.Hosting.DevTunnels (16)
DevTunnelMonitor.cs (5)
78var run = new Run(resolvedTunnelId, ports, _resource.TunnelId, _timeProvider.GetUtcNow(), _stopping.Token); 130return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelHostNotReady, _resource.TunnelId)); 604: MessageStrings.DevTunnelHostNotReady, _resource.TunnelId); 607description = string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelUnhealthy_Error, _resource.TunnelId, error); 611description = string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelUnhealthy_Error, _resource.TunnelId, endpointError.Message);
DevTunnelResource.cs (2)
35internal string ResolvedTunnelId => Options.Region is not null ? $"{TunnelId}.{Options.RegionCode}" : TunnelId;
DevTunnelResourceBuilderExtensions.cs (9)
147logger.LogInformation("Ensuring dev tunnel '{TunnelId}' is configured", tunnelResource.TunnelId); 148var tunnelStatus = await devTunnelClient.CreateTunnelAsync(tunnelResource.TunnelId, tunnelResource.Options, logger, ct).ConfigureAwait(false); 153logger.LogDebug("Dev tunnel '{TunnelId}' configured", tunnelResource.TunnelId); 157var exception = new DistributedApplicationException($"Error trying to create the dev tunnel resource '{tunnelResource.TunnelId}' this port belongs to: {ex.Message}", ex); 187logger.LogInformation("Deleting {Count} unmodeled ports from dev tunnel '{TunnelId}': {Ports}", unmodeledPorts.Count, tunnelResource.TunnelId, string.Join(", ", unmodeledPorts.Select(p => p.PortNumber))); 215portLogger.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); 219portLogger.LogError(ex, "Error trying to create dev tunnel port '{Port}' on tunnel '{Tunnel}': {Error}", tunnelPort, portResource.DevTunnel.TunnelId, ex.Message); 721? string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelPortHealthy, port, portResource.DevTunnel.TunnelId) 722: string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelUnhealthy_PortInactive, portResource.DevTunnel.TunnelId, port);
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
61Assert.Equal("custom-id", tunnel.Resource.TunnelId); 841await monitor.StartAsync(tunnel.Resource.TunnelId, CancellationToken.None); 843await monitor.ProcessLogAsync($"Ready to accept connections for tunnel: {tunnel.Resource.TunnelId}", CancellationToken.None);