internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
// Set the transaction state
CommonEnterState(tx);
// Notify the phase 0 enlistments that the transaction has aborted
for (int i = 0; i < tx._phase0Volatiles._volatileEnlistmentCount; i++)
{
tx._phase0Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase0Volatiles._volatileEnlistments[i]);
}
// Notify the phase 1 enlistments that the transaction has aborted
for (int i = 0; i < tx._phase1Volatiles._volatileEnlistmentCount; i++)
{
tx._phase1Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase1Volatiles._volatileEnlistments[i]);
}
// Remove this from the timeout list
TransactionManager.TransactionTable.Remove(tx);
TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
if (etwLog.IsEnabled())
{
etwLog.TransactionInDoubt(tx.TransactionTraceId);
}
// Fire Completion for anyone listening
tx.FireCompletion();
// Check to see if we need to release some waiter.
if (tx._asyncCommit)
{
tx.SignalAsyncCompletion();
}
}