Commit() публичный Метод

Commits our current transaction and closes the transaction.
public Commit ( ) : void
Результат void
        public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment)
        {
            // we receive a commit message
            // if we own a local transaction, then commit that transaction
            if (_transaction != null)
            {
                _transaction.Commit();
                _transaction = null;
                singlePhaseEnlistment.Committed();
            }
            else if (_transactionId > 0)
            {
                GetResourceManager().CommitTransaction(_transactionId);
                singlePhaseEnlistment.Committed();
            }

            _enlistedInTransactions.Remove(Transaction.Current);
        }
 public void ShouldNotBeAbleToCommitTwice()
 {
     var transaction = new Neo4jTransaction(new GraphClient(new Uri("http://foo/db/data")));
     transaction.Commit();
     transaction.Commit();
 }
 public void ShouldNotBeAbleToRollbackAfterCommit()
 {
     var transaction = new Neo4jTransaction(new GraphClient(new Uri("http://foo/db/data")));
     transaction.Commit();
     transaction.Rollback();
 }
 public void ShouldNotBeAbleToRollbackAfterCommit()
 {
     var transaction = new Neo4jTransaction(new GraphClient(new Uri("http://foo/db/data")));
     transaction.Commit();
     Assert.That(() => transaction.Rollback(), Throws.TypeOf<ClosedTransactionException>());
 }