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