2 instantiations of ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
205var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 251var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher);
12 references to ChangeTokenInfo
Microsoft.Extensions.FileProviders.Physical (12)
PhysicalFilesWatcher.cs (12)
30private readonly ConcurrentDictionary<string, ChangeTokenInfo> _filePathTokenLookup = new(StringComparer.OrdinalIgnoreCase); 31private readonly ConcurrentDictionary<string, ChangeTokenInfo> _wildcardTokenLookup = new(StringComparer.OrdinalIgnoreCase); 201if (!_filePathTokenLookup.TryGetValue(filePath, out ChangeTokenInfo tokenInfo)) 205var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken); 245if (!_wildcardTokenLookup.TryGetValue(pattern, out ChangeTokenInfo tokenInfo)) 251var newTokenInfo = new ChangeTokenInfo(cancellationTokenSource, cancellationChangeToken, matcher); 382void CancelAll(ConcurrentDictionary<string, ChangeTokenInfo> tokens, Func<string, bool> requiresSubdirectories) 384foreach (KeyValuePair<string, ChangeTokenInfo> entry in tokens) 386if (tokens.TryRemove(entry.Key, out ChangeTokenInfo matchInfo)) 451if (_filePathTokenLookup.TryRemove(path, out ChangeTokenInfo matchInfo)) 462foreach (KeyValuePair<string, ChangeTokenInfo> wildCardEntry in _wildcardTokenLookup) 740private static void CancelToken(ChangeTokenInfo matchInfo)