10 references to CacheStatus
Microsoft.Extensions.ServiceDiscovery (10)
ServiceEndpointWatcher.cs (10)
34private volatile CacheStatus _cacheState; 99if (!_disposalCancellation.IsCancellationRequested && _refreshTask.IsCompleted && (_cacheState == CacheStatus.Invalid || _cachedEndpoints is null or { ChangeToken.HasChanged: true } || force)) 102_cacheState = CacheStatus.Refreshing; 135CacheStatus newCacheState; 154newCacheState = CacheStatus.Valid; 175newCacheState = CacheStatus.Valid; 181newCacheState = CacheStatus.Invalid; 186Debug.Assert(error is null || newCacheState is CacheStatus.Invalid); 192if (newCacheState is CacheStatus.Valid) 211if (newCacheState is CacheStatus.Valid)