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