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