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