Fork me on GitHub

Transaction Scope

The scoping event broker fully supports the transaction scope available in the .NET framework. In order to get the transaction scope working you have first to setup the scoping event broker properly.

Setup of the scoping event broker

The usage of the scoping event broker is astonishingly simple. Basically it is only two lines of code.

That's already it! The scoping event broker is now aware of ambient transactions and can automatically attach to those.

Usages

Only when the transaction scope is successfully completed the events will be fired. When the scope is disposed but not completed no event will be fired! You can even do complex nesting of transactions scopes. Or dependent transaction clones! For those who are interested in the implementation details of this feature I can tell we are using volatile enlistments. More information can be found here.