I have a web api sending a command to an NServiceBus endpoint and the message delivery_mode is set to persistent as I would expect. However, when that message gets processed and publishes out events, the delivery_mode on those messages is set to non-persistent which is not expected. We have the outbox functionality enabled, so I guess it could be something to do with that.
What causes this to happen? What is the fix?