FileWatchDispatcher
Pennington.Infrastructure
Owns every IFileWatcher call on behalf of the application's IFileWatchAware services. On construction it registers an OS-level watcher for each declared FileWatchScope and subscribes once to the change stream; every subsequent change is fanned out to all IFileWatchAware instances.
Constructors
FileWatchDispatcher
#public FileWatchDispatcher(IEnumerable<IFileWatchAware> aware, IFileWatcher fileWatcher, ILogger<FileWatchDispatcher> logger = null)
Wires the watches: registers every declared scope and subscribes to the change stream.
Parameters
awareIEnumerable<IFileWatchAware>fileWatcherIFileWatcherloggerILogger<FileWatchDispatcher>
Pennington.Infrastructure.FileWatchDispatcher
namespace Pennington.Infrastructure;
/// Owns every IFileWatcher call on behalf of the application's IFileWatchAware services. On construction it registers an OS-level watcher for each declared FileWatchScope and subscribes once to the change stream; every subsequent change is fanned out to all IFileWatchAware instances.
public class FileWatchDispatcher
{
/// Wires the watches: registers every declared scope and subscribes to the change stream.
public FileWatchDispatcher(IEnumerable<IFileWatchAware> aware, IFileWatcher fileWatcher, ILogger<FileWatchDispatcher> logger = null)
;
}