Constructor IntentCatalogSnapshot
- Namespace
- IntentSharp.Catalog
- Assembly
- IntentSharp.Catalog.dll
IntentCatalogSnapshot(long, IReadOnlyDictionary<string, IntentDefinition>, IReadOnlyList<CatalogProblem>, DateTimeOffset)
Creates a snapshot from the given values, as they are; nothing is copied or checked. Custom catalogs call this to publish.
public IntentCatalogSnapshot(long generation, IReadOnlyDictionary<string, IntentDefinition> definitions, IReadOnlyList<CatalogProblem> problems, DateTimeOffset loadedAt)
Parameters
generationlongThe snapshot's number. Give each new snapshot a higher number than the one it replaces.
definitionsIReadOnlyDictionary<string, IntentDefinition>The definitions by name. Use a dictionary that ignores case (OrdinalIgnoreCase), as the built-in catalogs do, so TryGet(string, out IntentDefinition) and the runtime find names whatever their case.
problemsIReadOnlyList<CatalogProblem>The problems found by the load that made this snapshot; empty when it was clean.
loadedAtDateTimeOffsetWhen the snapshot was made. The built-in catalogs use the current UTC time.