Esempio n. 1
0
 public HibernateTransactionScope(IPlatformTransactionManager transactionManager)
 {
     if (currentScope != null)
     {
         isNested = true;
     }
     else
     {
         this.transactionManager = transactionManager;
         this.Start();
         currentScope = this;
     }
 }
Esempio n. 2
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         try
         {
             if (!isCompleted)
             {
                 Abort();
             }
         }
         finally
         {
             if (!isNested)
             {
                 currentScope = null;
             }
         }
     }
 }