2 instantiations of ChangedPath
Microsoft.DotNet.HotReload.Watch (2)
FileWatcher\DirectoryWatcher.cs (1)
37
onFileChange.Invoke(this, new
ChangedPath
(fullPath, kind));
HotReload\HotReloadDotNetWatcher.cs (1)
433
newAccumulator = newAccumulator.Add(new
ChangedPath
(file.Item.FilePath, file.Kind));
21 references to ChangedPath
Microsoft.DotNet.HotReload.Watch (21)
FileWatcher\DirectoryWatcher.cs (1)
17
public event EventHandler<
ChangedPath
>? OnFileChange;
FileWatcher\FileWatcher.cs (7)
21
public event Action<
ChangedPath
>? OnFileChange;
162
private void WatcherChangedHandler(object? sender,
ChangedPath
change)
180
public async Task<
ChangedPath
?> WaitForFileChangeAsync(Predicate<
ChangedPath
> acceptChange, Action? startedWatching, CancellationToken cancellationToken)
182
var fileChangedSource = new TaskCompletionSource<
ChangedPath
?>(TaskCreationOptions.RunContinuationsAsynchronously);
185
void FileChangedCallback(
ChangedPath
change)
193
ChangedPath
? change;
HotReload\HotReloadDotNetWatcher.cs (13)
95
Action<
ChangedPath
>? fileChangedCallback = null;
210
var changedFilesAccumulator = ImmutableList<
ChangedPath
>.Empty;
212
void FileChangedCallback(
ChangedPath
change)
422
var newAccumulator = ImmutableList<
ChangedPath
>.Empty;
769
private bool AcceptChange(
ChangedPath
change, EvaluationResult evaluationResult)
804
private bool AcceptChange(
ChangedPath
change)
829
internal static IEnumerable<
ChangedPath
> NormalizePathChanges(IEnumerable<
ChangedPath
> changes)
834
ChangedPath
? lastUpdate = null;
835
ChangedPath
? lastDelete = null;
836
ChangedPath
? lastAdd = null;
837
ChangedPath
? previous = null;
839
foreach (
var
item in group)