internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
// Notify the phase 0 enlistments that the transaction is indoubt
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 is indoubt
for (int i = 0; i < tx._phase1Volatiles._volatileEnlistmentCount; i++)
{
tx._phase1Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase1Volatiles._volatileEnlistments[i]);
}
// Fire Completion for anyone listening
tx.FireCompletion();
// We don't need to do the AsyncCompletion stuff. If it was needed, it was done out of SignalCallback.
TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
if (etwLog.IsEnabled())
{
etwLog.TransactionInDoubt(tx.TransactionTraceId);
}
}