2 writes to _cachedEndpoints
Microsoft.Extensions.ServiceDiscovery (2)
ServiceEndpointWatcher.cs (2)
194Interlocked.Exchange(ref _cachedEndpoints, null); 214_cachedEndpoints = newEndpoints;
3 references to _cachedEndpoints
Microsoft.Extensions.ServiceDiscovery (3)
ServiceEndpointWatcher.cs (3)
68if (_cachedEndpoints is { ChangeToken.HasChanged: false } cached) 86result = _cachedEndpoints; 99if (!_disposalCancellation.IsCancellationRequested && _refreshTask.IsCompleted && (_cacheState == CacheStatus.Invalid || _cachedEndpoints is null or { ChangeToken.HasChanged: true } || force))