Hi everyone,
We’ve just released the transactional session feature. The NServiceBus.TransactionalSession and the persistence-specific support packages provide outbox-like transaction support outside of message handlers, for example within ASP.NET controllers.
The new ITransactionalSession
interface is an alternative to IMessageSession
. The transactional session captures both the message sends/publishes, as well as database writes, and executes them atomically when committed.
When using the transactional session with the Outbox enabled, the session provides atomic consistency for message and database operations performed using ITransactionalSession
.
For further information, refer to the NServiceBus.TransactionalSession documentation or try the NServiceBus.TransactionalSession samples.
Where to get it
You can install the persistence specific package from NuGet for the persistence of your choice.
- NServiceBus.Persistence.Sql.TransactionalSession
- NServiceBus.NHibernate.TransactionalSession
- NServiceBus.Persistence.CosmosDB.TransactionalSession
- NServiceBus.Persistence.AzureTable.TransactionalSession
- NServiceBus.Storage.MongoDB.TransactionalSession
- NServiceBus.RavenDB.TransactionalSession
With thanks,
The team in Particular
Please read our release policy for more details.