Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TransactionStatePromotedNonMSDTCPhase0.cs
Go to the documentation of this file.
1namespace System.Transactions;
2
4{
5 internal override void EnterState(InternalTransaction tx)
6 {
8 int volatileEnlistmentCount = tx._phase0Volatiles._volatileEnlistmentCount;
9 int dependentClones = tx._phase0Volatiles._dependentClones;
10 tx._phase0VolatileWaveCount = volatileEnlistmentCount;
11 if (tx._phase0Volatiles._preparedVolatileEnlistments < volatileEnlistmentCount + dependentClones)
12 {
13 for (int i = 0; i < volatileEnlistmentCount; i++)
14 {
17 {
18 break;
19 }
20 }
21 }
22 else
23 {
25 }
26 }
27
28 internal override void BeginCommit(InternalTransaction tx, bool asyncCommit, AsyncCallback asyncCallback, object asyncState)
29 {
31 }
32
33 internal override void Rollback(InternalTransaction tx, Exception e)
34 {
36 }
37
39 {
40 int volatileEnlistmentCount = tx._phase0Volatiles._volatileEnlistmentCount;
41 int dependentClones = tx._phase0Volatiles._dependentClones;
42 tx._phase0VolatileWaveCount = volatileEnlistmentCount;
43 if (tx._phase0Volatiles._preparedVolatileEnlistments < volatileEnlistmentCount + dependentClones)
44 {
45 for (int i = 0; i < volatileEnlistmentCount; i++)
46 {
49 {
50 break;
51 }
52 }
53 }
54 else
55 {
57 }
58 }
59
61 {
62 }
63
64 internal override bool ContinuePhase0Prepares()
65 {
66 return true;
67 }
68}
virtual void ChangeStatePreparing(InternalEnlistment enlistment)
static TransactionException CreateTransactionStateException(Exception innerException, Guid distributedTxId)
override void ChangeStateTransactionAborted(InternalTransaction tx, Exception e)
override void BeginCommit(InternalTransaction tx, bool asyncCommit, AsyncCallback asyncCallback, object asyncState)
static TransactionStatePromotedNonMSDTCVolatilePhase1 TransactionStatePromotedNonMSDTCVolatilePhase1
void CommonEnterState(InternalTransaction tx)