Пример #1
0
 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();
         }
     }
 }
Пример #2
0
 public void OnTransactionCommit(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx)
 {
     //This event is treated the same way as an abort
     OnTransactionComplete(ref pinfo, ref guidTx);
 }
Пример #3
0
 public void OnTransactionPrepare(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx, int fVoteYes)
 {
     //we're not realy interested in this event
 }
Пример #4
0
 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...
 }
 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...
 }
 public void OnTransactionPrepare(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx, int fVoteYes)
 {
     //we're not realy interested in this event
 }
 public void OnTransactionCommit(ref COMSVCSEVENTINFO pinfo, ref Guid guidTx)
 {
     //This event is treated the same way as an abort
     OnTransactionComplete(ref pinfo, ref guidTx);
 }
 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();
         }
     }
 }