NServiceBus/NServiceBus — pull request #1238 by alistair (2013-06-15 12:32:55+00:00)
Title: AzureMessageQueueReceiver and JsonMessageSerializer do not correctly deserialize MessageWrapper

The AzureMessageQueueReceiver and JsonMessageSerializer do not understand how to deserialize the MessageWrapper class which is used for azure storage queues. The JsonMessageSerializer ends up returning a Json.NET internal object (JsonObject IIRC) which the AzureMessageQueueReceiver attempts to convert to a MessageWrapper and fails.

This fix passes the type MessageWrapper to the JsonMessageSerializer so that it attempts to deserialize to this type instead of the default object.

This pull request also includes the changes to the databus project to which I used to prove the above solution.