protected void OnTransactionComplete(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx) { lock (this) { IObjectCache cache = (IObjectCache)ObjectCaches[guidTx]; if (cache != null) { ObjectCaches.Remove(guidTx); } if (ObjectCaches.Count < 1) { UnregisterComTransactionEventsListener(); } } }
public void OnTransactionCommit(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx) { //This event is treated the same way as an abort OnTransactionComplete(ref pinfo, ref guidTx); }
public void OnTransactionPrepare(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx, int fVoteYes) { //we're not realy interested in this event }
public void OnTransactionStart(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx, ref Guid tsid, int fRoot) { //we're to late in the chain to ever get this event... }
protected void OnTransactionComplete(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx) { lock (this) { IObjectCache cache = (IObjectCache) ObjectCaches[guidTx]; if (cache != null) { ObjectCaches.Remove(guidTx); } if (ObjectCaches.Count < 1) { UnregisterComTransactionEventsListener(); } } }