Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EnlistmentStatePromoted.cs
Go to the documentation of this file.
1
using
System.Threading
;
2
3
namespace
System.Transactions
;
4
5
internal
sealed
class
EnlistmentStatePromoted
:
EnlistmentState
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
{
17
enlistment.
PromotedEnlistment
.
EnlistmentDone
();
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
{
43
enlistment.
PromotedEnlistment
.
ForceRollback
(e);
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
{
95
return
enlistment.
PromotedEnlistment
.
GetRecoveryInformation
();
96
}
97
finally
98
{
99
Monitor
.
Enter
(enlistment.
SyncRoot
);
100
}
101
}
102
}
System.Exception
Definition
Exception.cs:15
System.Threading.Monitor.Exit
static void Exit(object obj)
System.Threading.Monitor.Enter
static void Enter(object obj)
System.Threading.Monitor
Definition
Monitor.cs:9
System.Transactions.EnlistmentStatePromoted.EnterState
override void EnterState(InternalEnlistment enlistment)
Definition
EnlistmentStatePromoted.cs:7
System.Transactions.EnlistmentStatePromoted.RecoveryInformation
override byte[] RecoveryInformation(InternalEnlistment enlistment)
Definition
EnlistmentStatePromoted.cs:90
System.Transactions.EnlistmentStatePromoted.InDoubt
override void InDoubt(InternalEnlistment enlistment, Exception e)
Definition
EnlistmentStatePromoted.cs:77
System.Transactions.EnlistmentStatePromoted.EnlistmentDone
override void EnlistmentDone(InternalEnlistment enlistment)
Definition
EnlistmentStatePromoted.cs:12
System.Transactions.EnlistmentStatePromoted.Prepared
override void Prepared(InternalEnlistment enlistment)
Definition
EnlistmentStatePromoted.cs:25
System.Transactions.EnlistmentStatePromoted.ForceRollback
override void ForceRollback(InternalEnlistment enlistment, Exception e)
Definition
EnlistmentStatePromoted.cs:38
System.Transactions.EnlistmentStatePromoted.Committed
override void Committed(InternalEnlistment enlistment)
Definition
EnlistmentStatePromoted.cs:51
System.Transactions.EnlistmentStatePromoted.Aborted
override void Aborted(InternalEnlistment enlistment, Exception e)
Definition
EnlistmentStatePromoted.cs:64
System.Transactions.EnlistmentStatePromoted
Definition
EnlistmentStatePromoted.cs:6
System.Transactions.EnlistmentState
Definition
EnlistmentState.cs:6
System.Transactions.InternalEnlistment.SyncRoot
virtual object SyncRoot
Definition
InternalEnlistment.cs:84
System.Transactions.InternalEnlistment.PromotedEnlistment
IPromotedEnlistment PromotedEnlistment
Definition
InternalEnlistment.cs:99
System.Transactions.InternalEnlistment
Definition
InternalEnlistment.cs:8
System.Transactions.IPromotedEnlistment.EnlistmentDone
void EnlistmentDone()
System.Transactions.IPromotedEnlistment.Prepared
void Prepared()
System.Transactions.IPromotedEnlistment.InDoubt
void InDoubt(Exception e)
System.Transactions.IPromotedEnlistment.Aborted
void Aborted(Exception e)
System.Transactions.IPromotedEnlistment.GetRecoveryInformation
byte[] GetRecoveryInformation()
System.Transactions.IPromotedEnlistment.Committed
void Committed()
System.Transactions.IPromotedEnlistment.ForceRollback
void ForceRollback()
System.Threading
Definition
TaskToApm.cs:3
System.Transactions
Definition
AppSettings.cs:1
source
System.Transactions.Local
System.Transactions
EnlistmentStatePromoted.cs
Generated by
1.10.0