Details
Description
Add three new events in the ISession interface to allow client to be notified when a Transaction has begin when its committed or when its rolled back. This is mainly useful in the DTC aware NetTxSession to inform clients that the DTC transaction has completed and its safe to close or perform other operations on the Session. It can also allow a client to log more information etc.
We can define a delegate in ISession for this
public delegate void SessionTxEventDelegate(ISession session);
And add three event points for the notifications
event SessionTxEventDelegate TransactionStartedListener; event SessionTxEventDelegate TransactionCommittedListener; event SessionTxEventDelegate TransactionRolledBackListener;