This is intended to help anyone using NServiceBus saga persistence migrate existing saga data from one persistence to another.
Some things to keep in mind:
- The migration should be run while the live endpoint is offline to avoid issues with in-flight messages
- Run the
NServiceBus.EndpointMigrationExampleworker project. It should send one message upon startup, initializing the example saga and persisting the state to the specified folder. - Change the
runInPersistenceMigrationModevariable to true at the beginning of theProgram.csfile. Re-run the worker project and observe that the fake saga data in the LegacyPersistenceSource is used to start the saga in the temporary endpoint and a new saga persistence file is created in the specified folder.
Note: This is a work in progress...