Documentation
Table of Contents

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

generation long

The snapshot's number. Give each new snapshot a higher number than the one it replaces.

definitions IReadOnlyDictionary<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.

problems IReadOnlyList<CatalogProblem>

The problems found by the load that made this snapshot; empty when it was clean.

loadedAt DateTimeOffset

When the snapshot was made. The built-in catalogs use the current UTC time.