12 implementations of HasChanged
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileChangeToken.cs (1)
15public bool HasChanged { get; set; }
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileChangeToken.cs (1)
15public bool HasChanged { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
500bool IChangeToken.HasChanged => false;
Microsoft.Extensions.Configuration (1)
ConfigurationReloadToken.cs (1)
28public bool HasChanged => _cts.IsCancellationRequested;
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
461public bool HasChanged => true;
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
26public bool HasChanged => false;
Microsoft.Extensions.FileProviders.Physical (2)
PollingFileChangeToken.cs (1)
83public bool HasChanged
PollingWildCardChangeToken.cs (1)
87public 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)
62public bool HasChanged
39 references to HasChanged
Microsoft.AspNetCore.Mvc.Core.Test (5)
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (5)
113Assert.False(changeToken1.HasChanged); 130Assert.True(changeToken1.HasChanged); 131Assert.False(changeToken2.HasChanged); 147Assert.True(changeToken2.HasChanged); 148Assert.False(changeToken3.HasChanged);
Microsoft.AspNetCore.Routing.Tests (9)
Builder\GroupTest.cs (2)
373Assert.False(groupChangeToken.HasChanged); 380Assert.True(groupChangeToken.HasChanged);
CompositeEndpointDataSourceTest.cs (7)
176Assert.True(changeToken1.HasChanged); // old token is expected to be changed 189Assert.True(changeToken2.HasChanged); // old token is expected to be changed 215Assert.True(changeToken1.HasChanged); 225Assert.True(changeToken2.HasChanged); 250Assert.True(changeToken1.HasChanged); 261Assert.True(changeToken2.HasChanged); 278Assert.False(changeToken3.HasChanged);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
293if (_reloadToken is null || _reloadToken.HasChanged)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
CertificatePathWatcherTests.cs (4)
63Assert.False(changeToken.HasChanged); 162Assert.True(oldChangeToken.HasChanged); 163Assert.False(newChangeToken.HasChanged); 205Assert.True(oldChangeToken.HasChanged);
Microsoft.AspNetCore.Server.Kestrel.Tests (9)
KestrelConfigurationLoaderTests.cs (9)
1654mockReloadToken.VerifyGet(t => t.HasChanged, Times.Never); 1657mockReloadToken.SetupGet(t => t.HasChanged).Returns(true); 1666mockReloadToken.VerifyGet(t => t.HasChanged, reloadTimes); 1679mockReloadToken.VerifyGet(t => t.HasChanged, Times.Never); 1682mockReloadToken.SetupGet(t => t.HasChanged).Returns(true); 1691mockReloadToken.VerifyGet(t => t.HasChanged, Times.Never); 1705mockReloadToken.VerifyGet(t => t.HasChanged, Times.Never); 1708mockReloadToken.SetupGet(t => t.HasChanged).Returns(true); 1715mockReloadToken.VerifyGet(t => t.HasChanged, Times.AtLeastOnce);
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\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.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
266Assert.False(token.HasChanged);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
479if (!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 (5)
ChangeToken.cs (1)
102if (token.HasChanged && token.ActiveChangeCallbacks)
CompositeChangeToken.cs (1)
73if (ChangeTokens[i].HasChanged)
IChangeToken.cs (2)
20/// poll <see cref="HasChanged" /> to detect changes. 26/// <see cref="HasChanged"/> MUST be set before the callback is invoked.
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"/>