Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EnlistmentStatePromoted.cs
Go to the documentation of this file.
2
3namespace System.Transactions;
4
6{
7 internal override void EnterState(InternalEnlistment enlistment)
8 {
9 enlistment.State = this;
10 }
11
12 internal override void EnlistmentDone(InternalEnlistment enlistment)
13 {
14 Monitor.Exit(enlistment.SyncRoot);
15 try
16 {
18 }
19 finally
20 {
21 Monitor.Enter(enlistment.SyncRoot);
22 }
23 }
24
25 internal override void Prepared(InternalEnlistment enlistment)
26 {
27 Monitor.Exit(enlistment.SyncRoot);
28 try
29 {
30 enlistment.PromotedEnlistment.Prepared();
31 }
32 finally
33 {
34 Monitor.Enter(enlistment.SyncRoot);
35 }
36 }
37
38 internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
39 {
40 Monitor.Exit(enlistment.SyncRoot);
41 try
42 {
44 }
45 finally
46 {
47 Monitor.Enter(enlistment.SyncRoot);
48 }
49 }
50
51 internal override void Committed(InternalEnlistment enlistment)
52 {
53 Monitor.Exit(enlistment.SyncRoot);
54 try
55 {
56 enlistment.PromotedEnlistment.Committed();
57 }
58 finally
59 {
60 Monitor.Enter(enlistment.SyncRoot);
61 }
62 }
63
64 internal override void Aborted(InternalEnlistment enlistment, Exception e)
65 {
66 Monitor.Exit(enlistment.SyncRoot);
67 try
68 {
69 enlistment.PromotedEnlistment.Aborted(e);
70 }
71 finally
72 {
73 Monitor.Enter(enlistment.SyncRoot);
74 }
75 }
76
77 internal override void InDoubt(InternalEnlistment enlistment, Exception e)
78 {
79 Monitor.Exit(enlistment.SyncRoot);
80 try
81 {
82 enlistment.PromotedEnlistment.InDoubt(e);
83 }
84 finally
85 {
86 Monitor.Enter(enlistment.SyncRoot);
87 }
88 }
89
90 internal override byte[] RecoveryInformation(InternalEnlistment enlistment)
91 {
92 Monitor.Exit(enlistment.SyncRoot);
93 try
94 {
96 }
97 finally
98 {
99 Monitor.Enter(enlistment.SyncRoot);
100 }
101 }
102}
static void Exit(object obj)
static void Enter(object obj)
override void EnterState(InternalEnlistment enlistment)
override byte[] RecoveryInformation(InternalEnlistment enlistment)
override void InDoubt(InternalEnlistment enlistment, Exception e)
override void EnlistmentDone(InternalEnlistment enlistment)
override void Prepared(InternalEnlistment enlistment)
override void ForceRollback(InternalEnlistment enlistment, Exception e)
override void Committed(InternalEnlistment enlistment)
override void Aborted(InternalEnlistment enlistment, Exception e)