System.Transactions.EnlistmentState.ChangeStatePreparing C# (CSharp) Method

ChangeStatePreparing() private method

private ChangeStatePreparing ( InternalEnlistment enlistment ) : void
enlistment InternalEnlistment
return void
        internal virtual void ChangeStatePreparing(InternalEnlistment enlistment)
        {
            Debug.Assert(false, string.Format(null, "Invalid Event for InternalEnlistment State; Current State: {0}", GetType()));
            throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
        }