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