1 write to _resource
Aspire.Hosting.DevTunnels (1)
20 references to _resource
Aspire.Hosting.DevTunnels (20)
DevTunnelMonitor.cs (20)
70foreach (var port in _resource.Ports)
78var run = new Run(resolvedTunnelId, ports, _resource.TunnelId, _timeProvider.GetUtcNow(), _stopping.Token);
80_resource.LastKnownStatus = null;
81_resource.LastKnownAccessStatus = null;
103_resource.LastKnownStatus = null;
104_resource.LastKnownAccessStatus = null;
105foreach (var port in _resource.Ports)
130return HealthCheckResult.Unhealthy(string.Format(CultureInfo.CurrentCulture, MessageStrings.DevTunnelHostNotReady, _resource.TunnelId));
235_resource.LastKnownStatus = status;
293_resource.LastKnownStatus = null;
351_resource.LastKnownAccessStatus = access;
405await foreach (var batch in _logs.WatchAsync(_resource).WithCancellation(run.Cancellation.Token).ConfigureAwait(false))
436if (ReferenceEquals(update.Resource, _resource)
479if (_notifications.TryGetCurrentState(_resource.Name, out var current)
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);
615await _notifications.PublishUpdateAsync(_resource, snapshot => WithConnectionHealth(snapshot, _resource.Name, healthy, description)).ConfigureAwait(false);
701&& (!_notifications.TryGetCurrentState(_resource.Name, out var current)