2 instantiations of ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
215var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 261var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher);
12 references to ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (12)
PhysicalFilesWatcher.cs (12)
31private readonly ConcurrentDictionary<string, ChangeTokenInfo> _filePathTokenLookup = new(StringComparer.OrdinalIgnoreCase); 32private readonly ConcurrentDictionary<string, ChangeTokenInfo> _wildcardTokenLookup = new(StringComparer.OrdinalIgnoreCase); 211if (!_filePathTokenLookup.TryGetValue(filePath, out ChangeTokenInfo tokenInfo)) 215var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 255if (!_wildcardTokenLookup.TryGetValue(pattern, out ChangeTokenInfo tokenInfo)) 261var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher); 425void CancelAll(ConcurrentDictionary<string, ChangeTokenInfo> tokens, Func<string, bool> requiresSubdirectories) 427foreach (KeyValuePair<string, ChangeTokenInfo> entry in tokens) 429if (tokens.TryRemove(entry.Key, out ChangeTokenInfo matchInfo)) 529if (_filePathTokenLookup.TryRemove(path, out ChangeTokenInfo matchInfo)) 540foreach (KeyValuePair<string, ChangeTokenInfo> wildCardEntry in _wildcardTokenLookup) 821private static void CancelToken(ChangeTokenInfo matchInfo)