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