public void Commit(Enlistment enlistment) { try { BoltNeo4jTransaction.DoCommit(transactionExecutionEnvironment); } finally { // always have to call Done() or we clog the resources enlistment.Done(); } }
public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment) { try { BoltNeo4jTransaction.DoCommit(transactionExecutionEnvironment); singlePhaseEnlistment.Committed(); } finally { singlePhaseEnlistment.Aborted(); } }
public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment) { try { BoltNeo4jTransaction.DoCommit(transactionExecutionEnvironment); singlePhaseEnlistment.Committed(); } catch (Exception e) { singlePhaseEnlistment.Aborted(e); // TODO: Should we rethrow? } finally { singlePhaseEnlistment.Done(); } }