Ejemplo n.º 1
0
        /// <summary>
        /// Notifies an enlisted object that the transaction is being committed.
        /// </summary>
        /// <param name="singlePhaseEnlistment">A <see cref="SinglePhaseEnlistment"/>
        /// interface used to send a response to the transaction manager.
        /// </param>
        public void SinglePhaseCommit(SinglePhaseEnlistment singlePhaseEnlistment)
        {
            m_dbTransaction.Commit();
            singlePhaseEnlistment.Committed();
            m_dbConnection.Enlistment = null;

            if (m_disposeConnection)
            {
                m_dbConnection.Dispose();
            }
        }