2 instantiations of ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
192tokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 230tokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher);
10 references to ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (10)
PhysicalFilesWatcher.cs (10)
30private readonly ConcurrentDictionary<string, ChangeTokenInfo> _filePathTokenLookup = new(StringComparer.OrdinalIgnoreCase); 31private readonly ConcurrentDictionary<string, ChangeTokenInfo> _wildcardTokenLookup = new(StringComparer.OrdinalIgnoreCase); 188if (!_filePathTokenLookup.TryGetValue(filePath, out ChangeTokenInfo tokenInfo)) 224if (!_wildcardTokenLookup.TryGetValue(pattern, out ChangeTokenInfo tokenInfo)) 355static void CancelAll(ConcurrentDictionary<string, ChangeTokenInfo> tokens) 357foreach (KeyValuePair<string, ChangeTokenInfo> entry in tokens) 359if (tokens.TryRemove(entry.Key, out ChangeTokenInfo matchInfo)) 419if (_filePathTokenLookup.TryRemove(path, out ChangeTokenInfo matchInfo)) 425foreach (KeyValuePair<string, ChangeTokenInfo> wildCardEntry in _wildcardTokenLookup) 667private static void CancelToken(ChangeTokenInfo matchInfo)