This post is for those using ServiceBus who would like to see the contents of a BrokeredMessage from a live debug session or dump file. I assume you already know how to use windbg.
Open the dump file in windbg and load SOS. Then execute the following command:
!dumpheap -type BrokeredMessage -stat What you’re looking for is this:
MT Count TotalSize Class Name 000007fe98f5c6a0 150 45600 Microsoft.ServiceBus.Messaging.BrokeredMessage That gives you the MT for BrokeredMessage. Read More...