System.Transactions.Phase1VolatileEnlistment.CheckComplete C# (CSharp) Method

CheckComplete() private method

private CheckComplete ( ) : void
return void
        internal override void CheckComplete()
        {
            // Make certain we increment the right list.
            Debug.Assert(_transaction._phase1Volatiles._preparedVolatileEnlistments <=
                _transaction._phase1Volatiles._volatileEnlistmentCount +
                _transaction._phase1Volatiles._dependentClones);

            // Check to see if all of the volatile enlistments are done.
            if (_transaction._phase1Volatiles._preparedVolatileEnlistments ==
                _transaction._phase1Volatiles._volatileEnlistmentCount +
                _transaction._phase1Volatiles._dependentClones)
            {
                _transaction.State.Phase1VolatilePrepareDone(_transaction);
            }
        }