8 implementations of HasChanged
Microsoft.Extensions.Configuration (1)
ConfigurationReloadToken.cs (1)
28public bool HasChanged => _cts.IsCancellationRequested;
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
26public bool HasChanged => false;
Microsoft.Extensions.FileProviders.Physical (2)
PollingFileChangeToken.cs (1)
96public bool HasChanged
PollingWildCardChangeToken.cs (1)
89public bool HasChanged
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerExtensions.Obsolete.cs (1)
169public bool HasChanged => false;
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
31public bool HasChanged => _cts.IsCancellationRequested;
Microsoft.Extensions.Primitives (2)
CancellationChangeToken.cs (1)
30public bool HasChanged => Token.IsCancellationRequested;
CompositeChangeToken.cs (1)
67public bool HasChanged
14 references to HasChanged
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
295if (_reloadToken is null || _reloadToken.HasChanged)
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.CacheEntryTokens.cs (1)
56if (expiredToken.HasChanged)
Microsoft.Extensions.Configuration (2)
ConfigurationReloadToken.cs (1)
31/// Registers for a callback that will be invoked when the entry has changed. <see cref="IChangeToken.HasChanged"/>
src\runtime\src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
13/// Registers for a callback that will be invoked when the entry has changed. <see cref="Primitives.IChangeToken.HasChanged"/>
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
693if (!token.HasChanged)
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
34/// Registers for a callback that will be invoked when the entry has changed. <see cref="Microsoft.Extensions.Primitives.IChangeToken.HasChanged"/>
Microsoft.Extensions.Primitives (6)
ChangeToken.cs (1)
102if (token.HasChanged && token.ActiveChangeCallbacks)
CompositeChangeToken.cs (1)
78if (ChangeTokens[i].HasChanged)
IChangeToken.cs (3)
20/// poll <see cref="HasChanged" /> to detect changes. 24/// Consumers should also check <see cref="HasChanged" /> when complete accuracy is required. 30/// <see cref="HasChanged"/> MUST be set before the callback is invoked.
src\runtime\src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
13/// Registers for a callback that will be invoked when the entry has changed. <see cref="Primitives.IChangeToken.HasChanged"/>
Microsoft.Extensions.ServiceDiscovery (2)
ServiceEndpointWatcher.cs (2)
68if (_cachedEndpoints is { ChangeToken.HasChanged: false } cached) 99if (!_disposalCancellation.IsCancellationRequested && _refreshTask.IsCompleted && (_cacheState == CacheStatus.Invalid || _cachedEndpoints is null or { ChangeToken.HasChanged: true } || force))