Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 3
0
 public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment)
 {
     try
     {
         BoltNeo4jTransaction.DoCommit(transactionExecutionEnvironment);
         singlePhaseEnlistment.Committed();
     }
     catch (Exception e)
     {
         singlePhaseEnlistment.Aborted(e);
         // TODO: Should we rethrow?
     }
     finally
     {
         singlePhaseEnlistment.Done();
     }
 }