Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created April 10, 2012 09:08
Show Gist options
  • Select an option

  • Save andreasohlund/2349605 to your computer and use it in GitHub Desktop.

Select an option

Save andreasohlund/2349605 to your computer and use it in GitHub Desktop.
Gateway bug workaround
public class GatewayWorkaroundMutator:IMutateOutgoingTransportMessages,INeedInitialization
{
public void MutateOutgoing(object[] messages, TransportMessage transportMessage)
{
if (transportMessage.CorrelationId == null)
transportMessage.CorrelationId = "";
}
public void Init()
{
Configure.Instance.Configurer.ConfigureComponent<GatewayWorkaroundMutator>(
DependencyLifecycle.InstancePerCall);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment