To receive a callback from DomainObjects before an attempt to commit, after a successful commit and after an abort, implement this interface and pass the Type of the implementing class to the TransactionAttribute constructor.
For a list of all members of this type, see ITransactionSetAware Members.
Implement this interface when you are interested in callbacks at the bound object set level. Implement the ITransactionAware interface when you are interested in callbacks to an individual bound object.
For example, the following class implements the ITransactionSetAware interface: see ReorderValidator.
The following transactional service class passes theReorderValidator
type to the TransactionAttribute constructor: see ReorderValidationService. And the following unit test demonstrates the usage of the above classes: see ObjectTransactionTests.ReorderingOccursAtTheTypeLevel().
Namespace: DomainObjects.Facade.Transaction
Assembly: DomainObjects.Core (in DomainObjects.Core.dll)
ITransactionSetAware Members | DomainObjects.Facade.Transaction Namespace