Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3985

Support multiple SerializerRegistry(s)

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: 2.14.0
    • Component/s: Serialization
    • Labels:
      None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mirko@etherna.io Mirko Da Corte
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: