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

◆ EnterState()

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

Definition at line 5 of file TransactionStateAborted.cs.

6 {
7 base.EnterState(tx);
9 for (int i = 0; i < tx._phase0Volatiles._volatileEnlistmentCount; i++)
10 {
11 tx._phase0Volatiles._volatileEnlistments[i]._twoPhaseState.InternalAborted(tx._phase0Volatiles._volatileEnlistments[i]);
12 }
13 for (int j = 0; j < tx._phase1Volatiles._volatileEnlistmentCount; j++)
14 {
15 tx._phase1Volatiles._volatileEnlistments[j]._twoPhaseState.InternalAborted(tx._phase1Volatiles._volatileEnlistments[j]);
16 }
17 if (tx._durableEnlistment != null)
18 {
19 tx._durableEnlistment.State.InternalAborted(tx._durableEnlistment);
20 }
21 TransactionManager.TransactionTable.Remove(tx);
22 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
23 if (log.IsEnabled())
24 {
25 log.TransactionTimeout(tx.TransactionTraceId);
26 }
27 tx.FireCompletion();
28 if (tx._asyncCommit)
29 {
30 tx.SignalAsyncCompletion();
31 }
32 }
void CommonEnterState(InternalTransaction tx)

References System.Transactions.InternalTransaction._asyncCommit, 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.TransactionState.CommonEnterState(), System.Transactions.InternalTransaction.FireCompletion(), System.Transactions.EnlistmentState.InternalAborted(), System.Diagnostics.Tracing.EventSource.IsEnabled(), System.Transactions.TransactionsEtwProvider.Log, System.Transactions.InternalTransaction.SignalAsyncCompletion(), System.Transactions.InternalEnlistment.State, System.Transactions.TransactionManager.TransactionTable, System.Transactions.TransactionsEtwProvider.TransactionTimeout(), and System.Transactions.InternalTransaction.TransactionTraceId.