Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnterState()

override void System.Transactions.TransactionStatePromotedNonMSDTCAborted.EnterState ( InternalTransaction tx)
inlinepackage

Definition at line 5 of file TransactionStatePromotedNonMSDTCAborted.cs.

6 {
7 base.EnterState(tx);
8 for (int i = 0; i < tx._phase0Volatiles._volatileEnlistmentCount; i++)
9 {
10 tx._phase0Volatiles._volatileEnlistments[i]._twoPhaseState.InternalAborted(tx._phase0Volatiles._volatileEnlistments[i]);
11 }
12 for (int j = 0; j < tx._phase1Volatiles._volatileEnlistmentCount; j++)
13 {
14 tx._phase1Volatiles._volatileEnlistments[j]._twoPhaseState.InternalAborted(tx._phase1Volatiles._volatileEnlistments[j]);
15 }
16 if (tx._durableEnlistment != null)
17 {
18 tx._durableEnlistment.State.InternalAborted(tx._durableEnlistment);
19 }
20 tx.FireCompletion();
21 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
22 if (log.IsEnabled())
23 {
24 log.TransactionAborted(tx.TransactionTraceId);
25 }
26 }

References System.Transactions.InternalTransaction._durableEnlistment, System.Transactions.InternalTransaction._phase0Volatiles, System.Transactions.InternalTransaction._phase1Volatiles, System.Transactions.InternalEnlistment._twoPhaseState, System.Transactions.VolatileEnlistmentSet._volatileEnlistmentCount, System.Transactions.VolatileEnlistmentSet._volatileEnlistments, System.Transactions.InternalTransaction.FireCompletion(), System.Transactions.EnlistmentState.InternalAborted(), System.Diagnostics.Tracing.EventSource.IsEnabled(), System.Transactions.TransactionsEtwProvider.Log, System.Transactions.InternalEnlistment.State, System.Transactions.TransactionsEtwProvider.TransactionAborted(), and System.Transactions.InternalTransaction.TransactionTraceId.