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