I would like to be able to use NodaTime entities in some NServiceBus messages, however, the built-in xml serialization does not support them. Is there are straight-forward way to add my own serializers for specific types as part of the endpoint configuration?
Asked
Active
Viewed 365 times
1 Answers
1
NServiceBus does not currently support that. You would have to replace the whole serializer.

John Simons
- 4,288
- 23
- 41
-
Do you know if the JSON serializer would support them? – Udi Dahan Feb 14 '14 at 08:34
-
@UdiDahan - Yes, they work with the JSON serializer using the NodaTime.Serialization.JsonNet additions. – Matt Johnson-Pint Feb 22 '14 at 23:18
-
1Then, unless there is some strict reason for staying the XML serializer, just tell NServiceBus to use JSON serialization. – Udi Dahan Feb 23 '14 at 12:40