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

Cannot register my serizlizer in 1.8.1

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 1.8.1
    • None
    • None

    Description

      This line

      BsonSerializer.RegisterSerializer(typeof(PSObject), new PSObjectSerializer());

      where PSObjectSerializer is my custom serializer for PSObject, throws an exception:

      There is already a serializer registered for type System.Management.Automation.PSObject.

      In 1.8 this code works fine. Is anything perhaps changed in ways of how custom serializers should be registered?

      Attachments

        Activity

          People

            Unassigned Unassigned
            nightroman Roman Kuzmin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: