Custom serializers with MT3

212 views
Skip to first unread message

Christos Delivorias

unread,
Jul 23, 2015, 9:00:15 AM7/23/15
to masstransit-discuss
As there are quite a few changes in MT3 I can't seem to find any documentation on how to apply custom serializers to the messages.
There used to be a UseDefaultSerializer method for the bus, but not in v.3. I'm currently on v3.0.10.
I want to use ProtoBuf serialization, so I would appreciate any guidance as to how to plugin a new de/serializer in MT3.

Thanks again,
Christos

Chris Patterson

unread,
Jul 23, 2015, 1:58:16 PM7/23/15
to masstrans...@googlegroups.com
In MT3, there are two interfaces -- IMessageSerializer, and IMessageDeserializer. You can see how they are configured into the bus by checking out:


It's just setting the serializer to use, which also adds it to the supported serializer collection.

I'd love to see protocol buffers supported as a separate serializer assembly, but part of the main development project. If you have an existing MT2 project that is using protocol buffers, I'd be happy to take a look and help port it over to MT3.


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/abf99575-8802-4653-8aae-08c5bc1cae3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christos Delivorias

unread,
Jul 27, 2015, 6:01:01 AM7/27/15
to masstransit-discuss, ch...@phatboyg.com
Hi Chris,

I don't have an implementation for MT2 as we started directly working with MT3.
As such I can do the changes in MT3 and issue a pull request? You can then port it to MT2 if you need to.
C.
Reply all
Reply to author
Forward
0 new messages