-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: 2.14.0
-
Component/s: Serialization
-
None
The class MongoCollectionSettings exposes the property SerializerRegistry with only a getter, and it always return the static instance of BsonSerializer.SerializerRegistry.
There is no way for pass a custom instance of SerializerRegistry, even if this was evidently the intention having it as a settings property.
I propose to add a setter, keeping static instance as default, but permitting to change it if needed.
- is duplicated by
-
CSHARP-655 Proposal: support multiple serialization contexts
- Closed
- is related to
-
CSHARP-5082 Check if there is already a DiscriminatorConvention registered
- Closed