2 instantiations of ChangedPath
Microsoft.DotNet.HotReload.Watch (2)
FileWatcher\DirectoryWatcher.cs (1)
37onFileChange.Invoke(this, new ChangedPath(fullPath, kind));
HotReload\HotReloadDotNetWatcher.cs (1)
449newAccumulator = newAccumulator.Add(new ChangedPath(file.Item.FilePath, file.Kind));
21 references to ChangedPath
Microsoft.DotNet.HotReload.Watch (21)
FileWatcher\DirectoryWatcher.cs (1)
17public event EventHandler<ChangedPath>? OnFileChange;
FileWatcher\FileWatcher.cs (7)
21public event Action<ChangedPath>? OnFileChange; 162private void WatcherChangedHandler(object? sender, ChangedPath change) 180public async Task<ChangedPath?> WaitForFileChangeAsync(Predicate<ChangedPath> acceptChange, Action? startedWatching, CancellationToken cancellationToken) 182var fileChangedSource = new TaskCompletionSource<ChangedPath?>(TaskCreationOptions.RunContinuationsAsynchronously); 185void FileChangedCallback(ChangedPath change) 193ChangedPath? change;
HotReload\HotReloadDotNetWatcher.cs (13)
98Action<ChangedPath>? fileChangedCallback = null; 215var changedFilesAccumulator = ImmutableList<ChangedPath>.Empty; 217void FileChangedCallback(ChangedPath change) 438var newAccumulator = ImmutableList<ChangedPath>.Empty; 784private bool AcceptChange(ChangedPath change, EvaluationResult evaluationResult) 819private bool AcceptChange(ChangedPath change) 844internal static IEnumerable<ChangedPath> NormalizePathChanges(IEnumerable<ChangedPath> changes) 849ChangedPath? lastUpdate = null; 850ChangedPath? lastDelete = null; 851ChangedPath? lastAdd = null; 852ChangedPath? previous = null; 854foreach (var item in group)