private ITransaction BeginNewTransaction() { var transaction = new Neo4jTransactionProxy(_client, GenerateTransaction(), true); PushScopeTransaction(transaction); return(transaction); }
private ITransaction BeginJoinTransaction() { var parentScope = CurrentInternalTransaction; if (parentScope == null) { return(null); } if (!parentScope.Committable) { return(null); } if (!parentScope.IsOpen) { throw new ClosedTransactionException(null); } var joinedTransaction = new Neo4jTransactionProxy(_client, GenerateTransaction(parentScope.TransactionContext), false); PushScopeTransaction(joinedTransaction); return(joinedTransaction); }
private ITransaction BeginNewTransaction() { var transaction = new Neo4jTransactionProxy(_client, GenerateTransaction(), true); PushScopeTransaction(transaction); return transaction; }
private ITransaction BeginJoinTransaction() { var parentScope = CurrentInternalTransaction; if (parentScope == null) { return null; } if (!parentScope.Committable) { return null; } if (!parentScope.IsOpen) { throw new ClosedTransactionException(null); } var joinedTransaction = new Neo4jTransactionProxy(_client, GenerateTransaction(parentScope.TransactionContext), false); PushScopeTransaction(joinedTransaction); return joinedTransaction; }