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