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

FileWatchScope Pennington.Infrastructure

A directory and file pattern an IFileWatchAware needs OS-level watching for.

Properties

IncludeSubdirectories bool
Whether changes in nested directories also count.
Path string
Absolute directory to watch.
Pattern string
File pattern within Path (for example *.yml).

Constructors

FileWatchScope

#
public FileWatchScope(string Path, string Pattern, bool IncludeSubdirectories = false)

A directory and file pattern an IFileWatchAware needs OS-level watching for.

Parameters

Path string
Absolute directory to watch.
Pattern string
File pattern within Path (for example *.yml).
IncludeSubdirectories bool
Whether changes in nested directories also count.

Methods

Matches

#
public bool Matches(FileChangeNotification change)

Returns whether change falls within this scope.

Parameters

change FileChangeNotification

Returns

bool

Pennington.Infrastructure.FileWatchScope

namespace Pennington.Infrastructure;

/// A directory and file pattern an IFileWatchAware needs OS-level watching for.
public struct FileWatchScope
{
    /// A directory and file pattern an IFileWatchAware needs OS-level watching for.
    
public FileWatchScope(string Path, string Pattern, bool IncludeSubdirectories = false)
; /// Whether changes in nested directories also count.
public bool IncludeSubdirectories { get; set; }
/// Returns whether change falls within this scope.
public bool Matches(FileChangeNotification change)
; /// Absolute directory to watch.
public string Path { get; set; }
/// File pattern within Path (for example *.yml).
public string Pattern { get; set; }
}