DoCommit() static private method

Commits a transaction given the ID
static private DoCommit ( ITransactionExecutionEnvironment transactionExecutionEnvironment, NameValueCollection customHeaders = null ) : void
transactionExecutionEnvironment ITransactionExecutionEnvironment The transaction execution environment
customHeaders NameValueCollection Custom headers to sent to the neo4j server
return void
 public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment)
 {
     try
     {
         Neo4jTransaction.DoCommit(_transactionExecutionEnvironment);
         singlePhaseEnlistment.Committed();
     }
     finally
     {
         singlePhaseEnlistment.Aborted();
     }
 }
 public void Commit(Enlistment enlistment)
 {
     try
     {
         Neo4jTransaction.DoCommit(_transactionExecutionEnvironment);
     }
     finally
     {
         // always have to call Done() or we clog the resources
         enlistment.Done();
     }
 }