This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

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

aware IEnumerable<IFileWatchAware>
fileWatcher IFileWatcher
logger ILogger<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)
; }