2 instantiations of ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
213var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 259var 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); 209if (!_filePathTokenLookup.TryGetValue(filePath, out ChangeTokenInfo tokenInfo)) 213var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 253if (!_wildcardTokenLookup.TryGetValue(pattern, out ChangeTokenInfo tokenInfo)) 259var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher); 423void CancelAll(ConcurrentDictionary<string, ChangeTokenInfo> tokens, Func<string, bool> requiresSubdirectories) 425foreach (KeyValuePair<string, ChangeTokenInfo> entry in tokens) 427if (tokens.TryRemove(entry.Key, out ChangeTokenInfo matchInfo)) 527if (_filePathTokenLookup.TryRemove(path, out ChangeTokenInfo matchInfo)) 538foreach (KeyValuePair<string, ChangeTokenInfo> wildCardEntry in _wildcardTokenLookup) 819private static void CancelToken(ChangeTokenInfo matchInfo)