diff --git a/src/NServiceBus.NHibernate/SharedSession/OpenSessionBehavior.cs b/src/NServiceBus.NHibernate/SharedSession/OpenSessionBehavior.cs index 4c63023e2..a50f8c584 100644 --- a/src/NServiceBus.NHibernate/SharedSession/OpenSessionBehavior.cs +++ b/src/NServiceBus.NHibernate/SharedSession/OpenSessionBehavior.cs @@ -130,6 +130,7 @@ public Registration() { InsertAfter(WellKnownStep.ExecuteUnitOfWork); InsertAfterIfExists("OutboxDeduplication"); + InsertBefore(WellKnownStep.MutateIncomingTransportMessage); InsertBeforeIfExists("OutboxRecorder"); InsertBeforeIfExists(WellKnownStep.InvokeSaga); }