Class SearchDefinitionRenderContext<TDocument>
Encapsulates classes needed for rendering Search definitions.
public sealed class SearchDefinitionRenderContext<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
SearchDefinitionRenderContext<TDocument>
- Inherited Members
Constructors
SearchDefinitionRenderContext(IBsonSerializer<TDocument>, IBsonSerializerRegistry, string)
Initializes a new instance of the SearchDefinitionRenderContext<TDocument> class.
public SearchDefinitionRenderContext(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, string pathPrefix = null)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
pathPrefix
stringThe path prefix.
Properties
DocumentSerializer
Gets the document serializer.
public IBsonSerializer<TDocument> DocumentSerializer { get; }
Property Value
- IBsonSerializer<TDocument>
PathPrefix
Gets the path prefix.
public string PathPrefix { get; }
Property Value
SerializerRegistry
Gets the serializer registry.
public IBsonSerializerRegistry SerializerRegistry { get; }