Table of Contents

Constructor SizeLimitingBatchableSourceSerializer

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

SizeLimitingBatchableSourceSerializer(IBsonSerializer<TItem>, IElementNameValidator, int, int, int)

Initializes a new instance of the SizeLimitingBatchableSourceSerializer<TItem> class.

public SizeLimitingBatchableSourceSerializer(IBsonSerializer<TItem> itemSerializer, IElementNameValidator itemElementNameValidator, int maxBatchCount, int maxItemSize, int maxBatchSize)

Parameters

itemSerializer IBsonSerializer<TItem>

The item serializer.

itemElementNameValidator IElementNameValidator

The item element name validator.

maxBatchCount int

The maximum batch count.

maxItemSize int

The maximum size of a serialized item.

maxBatchSize int

The maximum size of the batch.