Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PreparingEnlistment.cs
Go to the documentation of this file.
1namespace System.Transactions;
2
4{
6 : base(enlistment)
7 {
8 }
9
10 public void Prepared()
11 {
13 if (log.IsEnabled())
14 {
15 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Prepared");
17 }
19 {
21 }
22 if (log.IsEnabled())
23 {
24 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Prepared");
25 }
26 }
27
28 public void ForceRollback()
29 {
31 if (log.IsEnabled())
32 {
33 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "ForceRollback");
35 }
37 {
39 }
40 if (log.IsEnabled())
41 {
42 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "ForceRollback");
43 }
44 }
45
46 public void ForceRollback(Exception? e)
47 {
49 if (log.IsEnabled())
50 {
51 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "ForceRollback");
53 }
55 {
57 }
58 if (log.IsEnabled())
59 {
60 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "ForceRollback");
61 }
62 }
63
64 public byte[] RecoveryInformation()
65 {
67 if (log.IsEnabled())
68 {
69 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "RecoveryInformation");
70 }
71 try
72 {
74 {
76 }
77 }
78 finally
79 {
80 if (log.IsEnabled())
81 {
82 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "RecoveryInformation");
83 }
84 }
85 }
86}
virtual void ForceRollback(InternalEnlistment enlistment, Exception e)
virtual byte[] RecoveryInformation(InternalEnlistment enlistment)
virtual void Prepared(InternalEnlistment enlistment)
InternalEnlistment _internalEnlistment
Definition Enlistment.cs:5
PreparingEnlistment(InternalEnlistment enlistment)
void EnlistmentPrepared(InternalEnlistment enlistment)
void MethodExit(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)
void EnlistmentForceRollback(InternalEnlistment enlistment)
static readonly TransactionsEtwProvider Log
void MethodEnter(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)