The CorruptTransportMessageModule
may be found in the Shuttle.Esb.Modules
assembly. It will log any transport messages that fail deserailization via the ServiceBus..Events.TransportMessageDeserializationException
event to a folder as specified in the application configuration appSettings
key with name CorruptTransportMessageFolder
:
<appSettings>
<add key="CorruptTransportMessageFolder" value="d:\shuttle-corrupt-messages"/>
</appSettings>
var bus = ServiceBus
.Create(c => c.AddModule(new CorruptTransportMessageModule()))
.Start();