Appearance
Corrupt Transport Message
PM> Install-Package Shuttle.Esb.Module.CorruptTransportMessage
The CorruptTransportMessage module for Shuttle.Esb writes any transport messages that fail to deserialize to disk.
It will log any transport messages that fail deserailization via the ServiceBusEvents.TransportMessageDeserializationException
event to a folder as specified in the configuration:
<configuration>
<configSections>
<section name="corruptTransportMessage" type="Shuttle.Esb.Module.CorruptTransportMessage.CorruptTransportMessageSection, Shuttle.Esb.Module.CorruptTransportMessage"/>
</configSections>
<corruptTransportMessage folder=".\corrupt-transport-messages" />
</configuration>
The default value for the folder
attribute is .\corrupt-transport-messages
.
Registration / Activation
The required components may be registered by calling ComponentRegistryExtensions.RegisterCorruptTransportMessage(IComponentRegistry)
.
In order for the module to attach to the IPipelineFactory
you would need to resolve it using IComponentResolver.Resolve<CorruptTransportMessageModule>()
.