1 interface inheriting from IChangeToken
Microsoft.Extensions.FileProviders.Physical (1)
IPollingChangeToken.cs (1)
9internal interface IPollingChangeToken : IChangeToken
10 implementations of IChangeToken
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileChangeToken.cs (1)
6public class TestFileChangeToken : IChangeToken
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileChangeToken.cs (1)
6public class TestFileChangeToken : IChangeToken
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
492private sealed class NoChangeChangeToken : IChangeToken
Microsoft.Extensions.Configuration (1)
ConfigurationReloadToken.cs (1)
14public class ConfigurationReloadToken : IChangeToken
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
455class MockChangeToken : IChangeToken
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
12public class NullChangeToken : IChangeToken
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerExtensions.Obsolete.cs (1)
165private sealed class NullChangeToken : IChangeToken, IDisposable
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
14public class ModelReloadToken : IChangeToken
Microsoft.Extensions.Primitives (2)
CancellationChangeToken.cs (1)
15public class CancellationChangeToken : IChangeToken
CompositeChangeToken.cs (1)
16public class CompositeChangeToken : IChangeToken
260 references to IChangeToken
ApiExplorerWebSite (1)
ActionDescriptorChangeProvider.cs (1)
18public IChangeToken GetChangeToken()
HtmlGenerationWebSite (5)
ISignalTokenProviderService.cs (1)
10IChangeToken GetToken(object key);
ProductsService.cs (1)
40var changeToken = _tokenProviderService.GetToken(key);
SignalTokenProviderService.cs (3)
14public IChangeToken GetToken(object key) 37public ChangeTokenInfo(IChangeToken changeToken, CancellationTokenSource tokenSource) 43public IChangeToken ChangeToken { get; }
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
20public override IChangeToken GetChangeToken()
Microsoft.AspNetCore.Authorization.Policy (1)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
56var changeToken = _dataSource.GetChangeToken();
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\RazorComponentEndpointDataSource.cs (2)
32private IChangeToken _changeToken; 207public override IChangeToken GetChangeToken()
DependencyInjection\HotReloadService.cs (1)
25public IChangeToken GetChangeToken() => new CancellationChangeToken(_tokenSource.Token);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
91public virtual IChangeToken Watch(string filter)
Microsoft.AspNetCore.Components.WebAssembly (3)
Hosting\WebAssemblyHostConfiguration.cs (3)
113/// Returns a <see cref="IChangeToken"/> that can be used to observe when this configuration is reloaded. 115/// <returns>The <see cref="IChangeToken"/>.</returns> 116public IChangeToken GetReloadToken() => _changeToken;
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
237public IChangeToken Watch(string filter) => NullChangeToken.Singleton;
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
29 public IChangeToken Watch(string filter)
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestFileProvider.cs (1)
21public IChangeToken Watch(string filter)
StaticContentProviderTests.cs (1)
68public IChangeToken Watch(string filter)
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
298public IChangeToken Watch(string filter)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
237public IChangeToken Watch(string filter) => NullChangeToken.Singleton;
Microsoft.AspNetCore.Mvc (1)
HotReloadService.cs (1)
64IChangeToken IActionDescriptorChangeProvider.GetChangeToken() => new CancellationChangeToken(_tokenSource.Token);
Microsoft.AspNetCore.Mvc.Core (17)
Infrastructure\ActionDescriptorCollectionProvider.cs (4)
12/// A base class for <see cref="IActionDescriptorCollectionProvider"/> which also provides an <see cref="IChangeToken"/> 29/// Gets an <see cref="IChangeToken"/> that will be signaled after the <see cref="ActionDescriptors"/> 32/// <returns>The <see cref="IChangeToken"/>.</returns> 33public abstract IChangeToken GetChangeToken();
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (6)
24private IChangeToken? _changeToken; 65/// Gets an <see cref="IChangeToken"/> that will be signaled after the <see cref="ActionDescriptors"/> 68/// <returns>The <see cref="IChangeToken"/>.</returns> 69public override IChangeToken GetChangeToken() 78private IChangeToken GetCompositeChangeToken() 85var changeTokens = new IChangeToken[_actionDescriptorChangeProviders.Length];
Infrastructure\IActionDescriptorChangeProvider.cs (3)
23/// Gets a <see cref="IChangeToken"/> used to signal invalidation of cached <see cref="Abstractions.ActionDescriptor"/> 26/// <returns>The <see cref="IChangeToken"/>.</returns> 32IChangeToken GetChangeToken();
Infrastructure\IActionDescriptorCollectionProvider.cs (1)
22/// using <see cref="ChangeToken.OnChange(System.Func{IChangeToken}, System.Action)"/>.
Routing\ActionEndpointDataSourceBase.cs (2)
30private IChangeToken? _changeToken; 87public override IChangeToken GetChangeToken()
src\Http\Routing\src\DataSourceDependentCache.cs (1)
56var changeToken = _dataSource.GetChangeToken();
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (4)
103var changeToken1 = actionDescriptorCollectionProvider.GetChangeToken(); 120var changeToken2 = actionDescriptorCollectionProvider.GetChangeToken(); 142var changeToken3 = actionDescriptorCollectionProvider.GetChangeToken(); 178public IChangeToken GetChangeToken()
Microsoft.AspNetCore.Mvc.Razor (9)
Compilation\CompiledViewDescriptor.cs (2)
86/// <see cref="IChangeToken"/> instances that indicate when this result has expired. 88public IList<IChangeToken>? ExpirationTokens { get; set; }
Compilation\DefaultViewCompiler.cs (1)
114ExpirationTokens = Array.Empty<IChangeToken>(),
RazorViewEngine.cs (6)
191var expirationTokens = new HashSet<IChangeToken>(); 196foreach (var expirationToken in expirationTokens) 353var expirationTokens = new HashSet<IChangeToken>(); 382foreach (var expirationToken in expirationTokens) 393HashSet<IChangeToken> expirationTokens, 427HashSet<IChangeToken> expirationTokens)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (10)
PageActionDescriptorChangeProvider.cs (3)
56public IChangeToken GetChangeToken() 60var changeTokens = new IChangeToken[_additionalFilesToTrack.Length + _searchPatterns.Length]; 68var wildcardChangeToken = fileProvider.Watch(_searchPatterns[i]);
RuntimeViewCompiler.cs (7)
206ExpirationTokens = Array.Empty<IChangeToken>(), // Never expire because we can't recompile. 238IList<IChangeToken> expirationTokens = new List<IChangeToken> 280private IList<IChangeToken> GetExpirationTokens(CompiledViewDescriptor precompiledView) 283var expirationTokens = new List<IChangeToken>(checksums.Count); 295private void GetChangeTokensFromImports(IList<IChangeToken> expirationTokens, RazorProjectItem projectItem) 404public IList<IChangeToken> ExpirationTokens { get; set; } = default!;
Microsoft.AspNetCore.Mvc.Razor.Test (7)
Compilation\DefaultRazorPageFactoryProviderTest.cs (5)
19Mock.Of<IChangeToken>(), 20Mock.Of<IChangeToken>(), 49Mock.Of<IChangeToken>(), 50Mock.Of<IChangeToken>(), 82ExpirationTokens = Array.Empty<IChangeToken>(),
RazorViewEngineTest.cs (2)
2040IList<IChangeToken> changeTokens = null, 2045ExpirationTokens = changeTokens ?? Array.Empty<IChangeToken>(),
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
123var changeToken = FileProvider.Watch(includePattern.Value);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
CacheTagHelperTest.cs (4)
215tempEntry.Setup(e => e.ExpirationTokens).Returns(new List<IChangeToken>()); 219finalEntry.Setup(e => e.ExpirationTokens).Returns(new List<IChangeToken>()); 977public IList<IChangeToken> ExpirationTokens { get; } = new List<IChangeToken>();
DefaultFileVersionProviderTest.cs (3)
259var changeToken = Mock.Of<IChangeToken>(); 265var cacheEntry = Mock.Of<ICacheEntry>(c => c.ExpirationTokens == new List<IChangeToken>());
GlobbingUrlBuilderTest.cs (3)
271var changeToken = new Mock<IChangeToken>(); 276value.Setup(c => c.ExpirationTokens).Returns(new List<IChangeToken>()); 414var cacheEntry = Mock.Of<ICacheEntry>(m => m.ExpirationTokens == new List<IChangeToken>());
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
91public virtual IChangeToken Watch(string filter)
Microsoft.AspNetCore.Routing (14)
CompositeEndpointDataSource.cs (4)
23private IChangeToken? _consumerChangeToken; 57/// Gets a <see cref="IChangeToken"/> used to signal invalidation of cached <see cref="Endpoint"/> instances. 59/// <returns>The <see cref="IChangeToken"/>.</returns> 60public override IChangeToken GetChangeToken()
DataSourceDependentCache.cs (1)
56var changeToken = _dataSource.GetChangeToken();
DefaultEndpointDataSource.cs (3)
42/// Gets a <see cref="IChangeToken"/> used to signal invalidation of cached <see cref="Endpoint"/> 45/// <returns>The <see cref="IChangeToken"/>.</returns> 46public override IChangeToken GetChangeToken() => NullChangeToken.Singleton;
EndpointDataSource.cs (3)
17/// Gets a <see cref="IChangeToken"/> used to signal invalidation of cached <see cref="Endpoint"/> 20/// <returns>The <see cref="IChangeToken"/>.</returns> 21public abstract IChangeToken GetChangeToken();
RouteEndpointDataSource.cs (1)
110public override IChangeToken GetChangeToken() => NullChangeToken.Singleton;
RouteGroupBuilder.cs (2)
71public override IChangeToken GetChangeToken() => _routeGroupBuilder._dataSources.Count switch 119private IChangeToken GetCompositeChangeToken()
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouteHandlerTest.cs (1)
123public override IChangeToken GetChangeToken() => NullChangeToken.Singleton;
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
113public override IChangeToken GetChangeToken()
Microsoft.AspNetCore.Routing.Tests (14)
Builder\GroupTest.cs (2)
372var groupChangeToken = groupDataSource.GetChangeToken(); 394public override IChangeToken GetChangeToken() => throw new NotImplementedException();
CompositeEndpointDataSourceTest.cs (11)
165var changeToken1 = compositeDataSource.GetChangeToken(); 177var changeToken2 = compositeDataSource.GetChangeToken(); // new token is in a unchanged state 190var changeToken3 = compositeDataSource.GetChangeToken(); // new token is in a unchanged state 205var changeToken1 = compositeDataSource.GetChangeToken(); 216var changeToken2 = compositeDataSource.GetChangeToken(); 226var changeToken3 = compositeDataSource.GetChangeToken(); 241var changeToken1 = compositeDataSource.GetChangeToken(); 251var changeToken2 = compositeDataSource.GetChangeToken(); 262var changeToken3 = compositeDataSource.GetChangeToken(); 526public override IChangeToken GetChangeToken() => NullChangeToken.Singleton; 539public override IChangeToken GetChangeToken() => NullChangeToken.Singleton;
TestObjects\DynamicEndpointDataSource.cs (1)
25public override IChangeToken GetChangeToken() => _changeToken;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\CertificatePathWatcher.cs (1)
61public IChangeToken GetChangeToken()
Internal\KestrelServerImpl.cs (2)
297IChangeToken? reloadToken = null; 332IChangeToken? reloadToken = null;
KestrelConfigurationLoader.cs (4)
32private IChangeToken? _reloadToken; 316internal IChangeToken? GetReloadToken() 320var configToken = Configuration.GetReloadToken(); 327var watcherToken = _certificatePathWatcher.GetChangeToken();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
CertificatePathWatcherTests.cs (11)
29var changeToken = watcher.GetChangeToken(); 135var oldChangeToken = watcher.GetChangeToken(); 159var newChangeToken = watcher.GetChangeToken(); 192var oldChangeToken = watcher.GetChangeToken(); 411var changeToken = watcher.GetChangeToken(); 490IChangeToken IFileProvider.Watch(string filter) => NoChangeChangeToken.Instance; 494public static readonly IChangeToken Instance = new NoChangeChangeToken(); 500bool IChangeToken.HasChanged => false; 501bool IChangeToken.ActiveChangeCallbacks => true; 502IDisposable IChangeToken.RegisterChangeCallback(Action<object> callback, object state) => DummyDisposable.Instance; 546IChangeToken IFileProvider.Watch(string path)
KestrelServerTests.cs (1)
764var mockChangeToken = new Mock<IChangeToken>();
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (2)
39private static Mock<IConfiguration> CreateMockConfiguration(out Mock<IChangeToken> mockReloadToken) 47mockReloadToken = new Mock<IChangeToken>();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
122public override IChangeToken GetChangeToken()
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
1072public IChangeToken Watch(string filter)
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
172public IChangeToken Watch(string filter)
Microsoft.Extensions.Caching.Abstractions (15)
CacheEntryExtensions.cs (4)
30/// Expires the cache entry if the given <see cref="IChangeToken"/> expires. 33/// <param name="expirationToken">The <see cref="IChangeToken"/> that causes the cache entry to expire.</param> 37IChangeToken expirationToken) 182foreach (IChangeToken expirationToken in options.ExpirationTokens)
ICacheEntry.cs (2)
43/// Gets the <see cref="IChangeToken"/> instances which cause the cache entry to expire. 45IList<IChangeToken> ExpirationTokens { get; }
MemoryCacheEntryExtensions.cs (3)
48/// Expires the cache entry if the given <see cref="IChangeToken"/> expires. 51/// <param name="expirationToken">The <see cref="IChangeToken"/> that causes the cache entry to expire.</param> 55IChangeToken expirationToken)
MemoryCacheEntryOptions.cs (3)
82/// Gets the <see cref="IChangeToken"/> instances which cause the cache entry to expire. 84public IList<IChangeToken> ExpirationTokens { get; } = new List<IChangeToken>();
MemoryCacheExtensions.cs (3)
121/// Sets a cache entry with the given key and value that will expire when <see cref="IChangeToken"/> expires. 127/// <param name="expirationToken">The <see cref="IChangeToken"/> that causes the cache entry to expire.</param> 129public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, IChangeToken expirationToken)
Microsoft.Extensions.Caching.Memory (9)
CacheEntry.CacheEntryTokens.cs (7)
20private List<IChangeToken>? _expirationTokens; 24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 29List<IChangeToken>? expirationTokens = _expirationTokens; 36IChangeToken expirationToken = expirationTokens[i]; 50List<IChangeToken>? expirationTokens = _expirationTokens; 55IChangeToken expiredToken = expirationTokens[i];
CacheEntry.cs (2)
136/// Gets the <see cref="IChangeToken"/> instances which cause the cache entry to expire. 139public IList<IChangeToken> ExpirationTokens => GetOrCreateTokens().ExpirationTokens;
Microsoft.Extensions.Configuration (13)
ChainedConfigurationProvider.cs (1)
58public IChangeToken GetReloadToken() => _config.GetReloadToken();
ConfigurationManager.cs (1)
100IChangeToken IConfiguration.GetReloadToken() => _changeToken;
ConfigurationProvider.cs (3)
104/// Returns a <see cref="IChangeToken"/> that can be used to listen when this provider is reloaded. 106/// <returns>The <see cref="IChangeToken"/>.</returns> 107public IChangeToken GetReloadToken()
ConfigurationReloadToken.cs (1)
31/// Registers for a callback that will be invoked when the entry has changed. <see cref="IChangeToken.HasChanged"/>
ConfigurationRoot.cs (3)
63/// Returns a <see cref="IChangeToken"/> that can be used to observe when this configuration is reloaded. 65/// <returns>The <see cref="IChangeToken"/>.</returns> 66public IChangeToken GetReloadToken() => _changeToken;
ConfigurationSection.cs (3)
98/// Returns a <see cref="IChangeToken"/> that can be used to observe when this configuration is reloaded. 100/// <returns>The <see cref="IChangeToken"/>.</returns> 101public IChangeToken GetReloadToken() => _root.GetReloadToken();
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.Configuration.Abstractions (6)
IConfiguration.cs (3)
39/// Returns a <see cref="IChangeToken"/> that can be used to observe when this configuration is reloaded. 41/// <returns>An <see cref="IChangeToken"/> token if this provider supports change tracking; otherwise, <see langword="null" />.</returns> 42IChangeToken GetReloadToken();
IConfigurationProvider.cs (3)
30/// Attempts to get an <see cref="IChangeToken"/> for change tracking. 32/// <returns>An <see cref="IChangeToken"/> token if this provider supports change tracking, <see langword="null"/> otherwise.</returns> 33IChangeToken GetReloadToken();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (5)
KeyPerFileTests.cs (5)
330var changeToken = config.GetReloadToken(); 360var changeToken = config.GetReloadToken(); 385var changeToken = config.GetReloadToken(); 411var changeToken = config.GetReloadToken(); 446public IChangeToken Watch(string filter) => _changeToken;
Microsoft.Extensions.FileProviders.Abstractions (6)
IFileProvider.cs (3)
28/// Creates an <see cref="IChangeToken"/> for the specified <paramref name="filter"/>. 31/// <returns>An <see cref="IChangeToken"/> that is notified when a file matching <paramref name="filter"/> is added, modified, or deleted.</returns> 32IChangeToken Watch(string filter);
NullFileProvider.cs (3)
28/// Returns a <see cref="IChangeToken"/> that monitors nothing. 31/// <returns>A <see cref="IChangeToken"/> that does not register callbacks.</returns> 32public IChangeToken Watch(string filter) => NullChangeToken.Singleton;
Microsoft.Extensions.FileProviders.Composite (5)
CompositeFileProvider.cs (5)
71/// Creates a <see cref="IChangeToken"/> for the specified <paramref name="pattern"/>. 74/// <returns>An <see cref="IChangeToken"/> that is notified when a file matching <paramref name="pattern"/> is added, modified, or deleted. 76public IChangeToken Watch(string pattern) 79var changeTokens = new List<IChangeToken>(); 82IChangeToken changeToken = fileProvider.Watch(pattern);
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
176public IChangeToken Watch(string pattern)
ManifestEmbeddedFileProvider.cs (1)
117public IChangeToken Watch(string filter)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
261var token = provider.Watch("Resources/File.txt");
Microsoft.Extensions.FileProviders.Physical (19)
PhysicalFileProvider.cs (5)
116/// <see langword="true"/> if the <see cref="IChangeToken"/> returned by <see cref="Watch(string)"/> actively polls for file changes 117/// (<see cref="IChangeToken.ActiveChangeCallbacks"/> will be <see langword="true"/>) instead of being passive. 342/// <para>Creates a <see cref="IChangeToken" /> for the specified <paramref name="filter" />.</para> 350/// An <see cref="IChangeToken" /> that is notified when a file matching <paramref name="filter" /> is added, 355public IChangeToken Watch(string filter)
PhysicalFilesWatcher.cs (12)
21/// <see cref="IChangeToken" /> when files are created, change, renamed, or deleted. 51/// <see cref="IChangeToken" /> created by <see cref="CreateFileChangeToken(string)" />. 69/// <see cref="IChangeToken" /> created by <see cref="CreateFileChangeToken(string)" />. 117/// Creates an instance of <see cref="IChangeToken" /> for all files and directories that match the 128public IChangeToken CreateFileChangeToken(string filter) 140IChangeToken changeToken = GetOrAddChangeToken(filter); 149private IChangeToken GetOrAddChangeToken(string pattern) 156IChangeToken changeToken; 174internal IChangeToken GetOrAddFilePathChangeToken(string filePath) 184IChangeToken changeToken = tokenInfo.ChangeToken; 209internal IChangeToken GetOrAddWildcardChangeToken(string pattern) 221IChangeToken changeToken = tokenInfo.ChangeToken;
PollingWildCardChangeToken.cs (2)
19/// A polling based <see cref="IChangeToken"/> for wildcard patterns. 193IDisposable IChangeToken.RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.Logging.Console (5)
ConfigurationConsoleLoggerSettings.cs (2)
31/// Gets the <see cref="IChangeToken"/> that propagates notifications that a change has occurred. 33public IChangeToken? ChangeToken { get; private set; }
ConsoleLoggerExtensions.Obsolete.cs (1)
137IChangeToken IOptionsChangeTokenSource<ConsoleLoggerOptions>.GetChangeToken() => _settings.ChangeToken ?? NullChangeToken.Instance;
ConsoleLoggerSettings.cs (1)
19public IChangeToken? ChangeToken { get; set; }
IConsoleLoggerSettings.cs (1)
25IChangeToken? ChangeToken { get; }
Microsoft.Extensions.Logging.EventSource (2)
EventLogFiltersConfigureOptionsChangeSource.cs (1)
19public IChangeToken GetChangeToken() => _eventSource.GetFilterChangeToken();
LoggingEventSource.cs (1)
381internal IChangeToken GetFilterChangeToken()
Microsoft.Extensions.ML (5)
ModelLoaders\FileModelLoader.cs (1)
95public override IChangeToken GetReloadToken()
ModelLoaders\ModelLoader.cs (1)
20public abstract IChangeToken GetReloadToken();
ModelLoaders\UriModelLoader.cs (1)
171public override IChangeToken GetReloadToken()
ModelReloadToken.cs (2)
12/// Implements <see cref="IChangeToken"/> 34/// Registers for a callback that will be invoked when the entry has changed. <see cref="Microsoft.Extensions.Primitives.IChangeToken.HasChanged"/>
Microsoft.Extensions.Options (3)
IOptionsChangeTokenSource.cs (3)
9/// Fetches a <see cref="IChangeToken"/> that's used for tracking options changes. 15/// Returns a <see cref="IChangeToken"/> that can be used to register a change notification callback. 18IChangeToken GetChangeToken();
Microsoft.Extensions.Options.ConfigurationExtensions (2)
ConfigurationChangeTokenSource.cs (2)
11/// Creates <see cref="IChangeToken"/>s so that <see cref="IOptionsMonitor{TOptions}"/> gets 49public IChangeToken GetChangeToken()
Microsoft.Extensions.Primitives (15)
CancellationChangeToken.cs (1)
12/// A <see cref="IChangeToken"/> implementation using <see cref="CancellationToken"/>.
ChangeToken.cs (7)
20public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Action changeTokenConsumer) 41public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) 57private readonly Func<IChangeToken?> _changeTokenProducer; 64public ChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) 70IChangeToken? token = changeTokenProducer(); 82IChangeToken? token = _changeTokenProducer(); 95private void RegisterChangeTokenCallback(IChangeToken? token)
CompositeChangeToken.cs (6)
13/// An <see cref="IChangeToken"/> that represents one or more <see cref="IChangeToken"/> instances. 30/// <param name="changeTokens">The list of <see cref="IChangeToken"/> to compose.</param> 31public CompositeChangeToken(IReadOnlyList<IChangeToken> changeTokens) 50/// Returns the list of <see cref="IChangeToken"/> that compose the current <see cref="CompositeChangeToken"/>. 52public IReadOnlyList<IChangeToken> ChangeTokens { get; }
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 (3)
ServiceDiscoveryOptions.cs (1)
21/// Gets or sets the period between polling attempts for providers which do not support refresh notifications via <see cref="IChangeToken.ActiveChangeCallbacks"/>.
ServiceEndpointBuilder.cs (2)
15private readonly List<IChangeToken> _changeTokens = new(); 22public void AddChangeToken(IChangeToken changeToken)
Microsoft.Extensions.ServiceDiscovery.Abstractions (4)
IServiceEndpointBuilder.cs (1)
28void AddChangeToken(IChangeToken changeToken);
ServiceEndpointSource.cs (3)
25public ServiceEndpointSource(List<ServiceEndpoint>? endpoints, IChangeToken changeToken, IFeatureCollection features) 42public IChangeToken ChangeToken { get; } 62public IChangeToken ChangeToken => value.ChangeToken;
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
ServiceDiscoveryDestinationResolver.cs (3)
27var tasks = new List<Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)>>(destinations.Count); 34var changeTokens = new List<IChangeToken>(); 52private async Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)> ResolveHostAsync(
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
65public IChangeToken Watch(string filter)
RoutingSandbox (1)
Framework\FrameworkEndpointDataSource.cs (1)
77public override IChangeToken GetChangeToken()