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
servicesIServiceCollectionThe service collection.
folderstringThe folder to load from. It must exist when the catalog is first resolved.
configureAction<FileIntentCatalogOptions>Changes the catalog's settings before it is created. Null keeps the defaults.
Returns
- IServiceCollection