Cannot register my serizlizer in 1.8.1

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.8.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

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

              Created:
              Updated:
              Resolved: