DomainObjects Class Library

ITransactionSetAware Interface

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.

public interface ITransactionSetAware

Remarks

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.

Example

For example, the following class implements the ITransactionSetAware interface: see ReorderValidator.

The following transactional service class passes the ReorderValidator type to the TransactionAttribute constructor: see ReorderValidationService.

And the following unit test demonstrates the usage of the above classes: see ObjectTransactionTests.ReorderingOccursAtTheTypeLevel().

Requirements

Namespace: DomainObjects.Facade.Transaction

Assembly: DomainObjects.Core (in DomainObjects.Core.dll)

See Also

ITransactionSetAware Members | DomainObjects.Facade.Transaction Namespace