Esempio n. 1
0
        /// <summary>
        /// Appends an <see cref="IOperation" /> onto the end of the transaction's
        /// redo operation log.
        /// </summary>
        /// <param name="operation">The <see cref="IOperation" />.</param>
        /// <exception cref="TransactionException">Thrown if the transaction is not open.</exception>
        public void Log(IOperation operation)
        {
            using (TimedLock.Lock(syncLock))
            {
                if (!isOpen)
                {
                    throw new TransactionException(NotOpenMsg);
                }

                transBase.Log(operation);
            }
        }