FileDependency Constructor
Definition
FileDependency(Lazy<FileWatcher>, bool)
Initializes a new instance of the FileDependency class.
public FileDependency(Lazy<FileWatcher> lazyFileWatcher, bool breakTieOnChanged = false)
Parameters
lazyFileWatcherLazy<FileWatcher>The FileWatcher to associate with this dependency.
breakTieOnChangedboolif set to
trueall FileWatcher instances is disassociated with this dependency after first notification of changed.
Remarks
The FileWatcher initialization is deferred until StartAsync() is invoked.
Exceptions
- ArgumentNullException
lazyFileWatchercannot be null.
FileDependency(IEnumerable<Lazy<FileWatcher>>, bool)
Initializes a new instance of the FileDependency class.
public FileDependency(IEnumerable<Lazy<FileWatcher>> lazyFileWatchers, bool breakTieOnChanged = false)
Parameters
lazyFileWatchersIEnumerable<Lazy<FileWatcher>>The FileWatcher sequence to associate with this dependency.
breakTieOnChangedboolif set to
trueall FileWatcher instances is disassociated with this dependency after first notification of changed.
Remarks
The sequence of FileWatcher initializations is deferred until StartAsync() is invoked.