Documentation
Table of Contents

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

folder string

The folder to load from. A relative path resolves against BaseDirectory.

options FileIntentCatalogOptions

Settings for the catalog. Null uses the defaults.

logger ILogger<FileIntentCatalog>

Receives load problems, the one line per load, watcher errors and failed reloads. Null logs nothing.

Exceptions

ArgumentException

folder is null, empty or white space.

DirectoryNotFoundException

The folder does not exist.

ArgumentOutOfRangeException

DebounceInterval is below zero or above one minute.