Table of Contents

Class ChangeStreamDocumentSerializer<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

A serializer for ChangeStreamDocument instances.

public class ChangeStreamDocumentSerializer<TDocument> : BsonDocumentBackedClassSerializer<ChangeStreamDocument<TDocument>>, IBsonSerializer<ChangeStreamDocument<TDocument>>, IBsonDocumentSerializer, IBsonSerializer

Type Parameters

TDocument

The type of the document.

Inheritance
ChangeStreamDocumentSerializer<TDocument>
Implements
Inherited Members

Constructors

ChangeStreamDocumentSerializer(IBsonSerializer<TDocument>)

Initializes a new instance of the ChangeStreamDocumentSerializer<TDocument> class.

public ChangeStreamDocumentSerializer(IBsonSerializer<TDocument> documentSerializer)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

Methods

CreateInstance(BsonDocument)

Creates the instance.

protected override ChangeStreamDocument<TDocument> CreateInstance(BsonDocument backingDocument)

Parameters

backingDocument BsonDocument

The backing document.

Returns

ChangeStreamDocument<TDocument>

An instance of TClass.

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

public override ChangeStreamDocument<TDocument> Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)

Parameters

context BsonDeserializationContext

The deserialization context.

args BsonDeserializationArgs

The deserialization args.

Returns

ChangeStreamDocument<TDocument>

A deserialized value.