Constructor FileIntentCatalog
- Namespace
- IntentSharp.Catalog
- Assembly
- IntentSharp.Catalog.dll
FileIntentCatalog(string, FileIntentCatalogOptions?, ILogger<FileIntentCatalog>?)
Opens the catalog over folder and loads every file before returning; it watches the folder unless
WatchForChanges is false.
public FileIntentCatalog(string folder, FileIntentCatalogOptions? options = null, ILogger<FileIntentCatalog>? logger = null)
Parameters
folderstringThe folder to load from. A relative path resolves against BaseDirectory.
optionsFileIntentCatalogOptionsSettings for the catalog. Null uses the defaults.
loggerILogger<FileIntentCatalog>Receives load problems, the one line per load, watcher errors and failed reloads. Null logs nothing.
Exceptions
- ArgumentException
folderis null, empty or white space.- DirectoryNotFoundException
The folder does not exist.
- ArgumentOutOfRangeException
DebounceInterval is below zero or above one minute.