Documentation
Table of Contents

Method AddIntentCatalog

Namespace
IntentSharp.Catalog
Assembly
IntentSharp.Catalog.dll

AddIntentCatalog(IServiceCollection, string, Action<FileIntentCatalogOptions>?)

Registers a FileIntentCatalog over folder (relative paths resolve against BaseDirectory) as IIntentCatalog. It loads when first resolved, watches the folder, and is disposed with the container. The first registration wins.

public static IServiceCollection AddIntentCatalog(this IServiceCollection services, string folder, Action<FileIntentCatalogOptions>? configure = null)

Parameters

services IServiceCollection

The service collection.

folder string

The folder to load from. It must exist when the catalog is first resolved.

configure Action<FileIntentCatalogOptions>

Changes the catalog's settings before it is created. Null keeps the defaults.

Returns

IServiceCollection