Implemented interface member:
property
HasChanged
Microsoft.Extensions.Primitives.IChangeToken.HasChanged
10 references to HasChanged
Microsoft.AspNetCore.Routing.Tests (9)
CompositeEndpointDataSourceTest.cs (9)
167Assert.False(token.HasChanged); // initial state 180Assert.False(token.HasChanged); 194Assert.False(token.HasChanged); 207Assert.False(token.HasChanged); 219Assert.False(token.HasChanged); 230Assert.False(token.HasChanged); 243Assert.False(token.HasChanged); 254Assert.False(token.HasChanged); 266Assert.False(token.HasChanged);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProviderBase.cs (1)
101private bool ShouldRefresh() => _lastEndpointCollection is null || _lastChangeToken is { HasChanged: true } || ElapsedSinceRefresh >= _nextRefreshPeriod;