public void Commit(ITransaction transaction) { if (transaction == null) throw new ArgumentNullException("transaction"); mTransactions.RemoveRange(mInsertionPoint, mTransactions.Count - mInsertionPoint); mTransactions.Add(transaction); transaction.Commit(); ++mInsertionPoint; }
public void Add(ITransaction operation) { mOperations.Add(operation); }