Constructor InMemoryIntentCatalog
- Namespace
- IntentSharp.Catalog
- Assembly
- IntentSharp.Catalog.dll
InMemoryIntentCatalog()
Creates an empty catalog.
public InMemoryIntentCatalog()
InMemoryIntentCatalog(IEnumerable<IntentDefinition>)
Creates a catalog holding definitions, each added as by Add(IntentDefinition).
public InMemoryIntentCatalog(IEnumerable<IntentDefinition> definitions)
Parameters
definitionsIEnumerable<IntentDefinition>
Exceptions
- ArgumentNullException
definitionsor one of its items is null.- ArgumentException
A definition is invalid, or two share a name.