NServiceBus/NServiceBus — pull request #854 by danielmarbach (2012-12-31 02:14:23+00:00)
Title: UnicastBus consequently uses MessageMapper for type name retrieval

Relates to #853

UnicastBus consequently uses MessageMapper for type name retrieval. This will remove the IsDynamic hacks and ensures that only concrete and not dynamic types used.

With that approach all knowledge about dynamic types resides in the message mapper. This also allows users of NSB to have own dynamic types which would be filtered with the old code.

I double checked (but PLEASE review properly) that this should not break serialization and deserialization. Even if there are messages which have in the header a dynamic type serialized this should work because the __imp get's stripped away during deserialization.