System.Transactions.TransactionState.ChangeStateAbortedDuringPromotion C# (CSharp) Method

ChangeStateAbortedDuringPromotion() private method

private ChangeStateAbortedDuringPromotion ( InternalTransaction tx ) : void
tx InternalTransaction
return void
        internal virtual void ChangeStateAbortedDuringPromotion(InternalTransaction tx)
        {
            Debug.Assert(false, string.Format(null, "Invalid Event for State; Current State: {0}", GetType()));
            TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
            if (etwLog.IsEnabled())
            {
                etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx.TransactionTraceId.TransactionIdentifier.ToString(), string.Empty);
            }

            throw new InvalidOperationException();
        }