Documentation
Table of Contents

Class DocumentContextSource

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

Sends documents of a core IDocumentStore with every request, one item of kind Document per document, read at its running version: the item's name and reference are the document's id, its text is the document's text, its hash is the version's content hash, and its version property is the version's sequence. A document with no running version sends nothing.

public sealed class DocumentContextSource : ISpecialistContextSource
Inheritance
object
DocumentContextSource
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

DocumentContextSource(IDocumentStore, params DocumentId[])

Creates the source.

Properties

Documents

The ids of the documents sent, in order.

Store

The store that holds the documents.

Methods

GetContextAsync(IntentDefinition, CancellationToken)

Returns the items to send with a request for definition; an empty list sends none.