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

ChangeStateTransactionAborted() private method

private ChangeStateTransactionAborted ( InternalTransaction tx, Exception e ) : void
tx InternalTransaction
e System.Exception
return void
        internal virtual void ChangeStateTransactionAborted(InternalTransaction tx, Exception e)
        {
            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(), e.ToString());
            }

            throw new InvalidOperationException();
        }