Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SinglePhaseEnlistment.cs
Go to the documentation of this file.
1namespace System.Transactions;
2
4{
6 : base(enlistment)
7 {
8 }
9
10 public void Aborted()
11 {
13 if (log.IsEnabled())
14 {
15 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Aborted");
17 }
19 {
21 }
22 if (log.IsEnabled())
23 {
24 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Aborted");
25 }
26 }
27
28 public void Aborted(Exception? e)
29 {
31 if (log.IsEnabled())
32 {
33 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Aborted");
35 }
37 {
39 }
40 if (log.IsEnabled())
41 {
42 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Aborted");
43 }
44 }
45
46 public void Committed()
47 {
49 if (log.IsEnabled())
50 {
51 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Committed");
53 }
55 {
57 }
58 if (log.IsEnabled())
59 {
60 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Committed");
61 }
62 }
63
64 public void InDoubt()
65 {
67 if (log.IsEnabled())
68 {
69 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "InDoubt");
70 }
72 {
73 if (log.IsEnabled())
74 {
76 }
78 }
79 if (log.IsEnabled())
80 {
81 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "InDoubt");
82 }
83 }
84
85 public void InDoubt(Exception? e)
86 {
88 if (log.IsEnabled())
89 {
90 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "InDoubt");
91 }
93 {
94 if (log.IsEnabled())
95 {
97 }
99 }
100 if (log.IsEnabled())
101 {
102 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "InDoubt");
103 }
104 }
105}
virtual void Aborted(InternalEnlistment enlistment, Exception e)
virtual void InDoubt(InternalEnlistment enlistment, Exception e)
virtual void Committed(InternalEnlistment enlistment)
InternalEnlistment _internalEnlistment
Definition Enlistment.cs:5
SinglePhaseEnlistment(InternalEnlistment enlistment)
void EnlistmentCommitted(InternalEnlistment enlistment)
void EnlistmentAborted(InternalEnlistment enlistment)
void MethodExit(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)
static readonly TransactionsEtwProvider Log
void MethodEnter(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)
void EnlistmentInDoubt(InternalEnlistment enlistment)