Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
VolatileEnlistmentPreparing.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 Monitor.Exit(enlistment.Transaction);
11 try
12 {
14 if (log.IsEnabled())
15 {
16 log.EnlistmentStatus(enlistment, NotificationCall.Prepare);
17 }
19 }
20 finally
21 {
22 Monitor.Enter(enlistment.Transaction);
23 }
24 }
25
26 internal override void EnlistmentDone(InternalEnlistment enlistment)
27 {
29 enlistment.FinishEnlistment();
30 }
31
32 internal override void Prepared(InternalEnlistment enlistment)
33 {
35 enlistment.FinishEnlistment();
36 }
37
38 internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
39 {
42 enlistment.FinishEnlistment();
43 }
44
45 internal override void ChangeStatePreparing(InternalEnlistment enlistment)
46 {
47 }
48
49 internal override void InternalAborted(InternalEnlistment enlistment)
50 {
52 }
53}
static void Exit(object obj)
static void Enter(object obj)
IEnlistmentNotification EnlistmentNotification
virtual void ChangeStateTransactionAborted(InternalTransaction tx, Exception e)
void EnlistmentStatus(InternalEnlistment enlistment, NotificationCall notificationCall)
static readonly TransactionsEtwProvider Log
override void ForceRollback(InternalEnlistment enlistment, Exception e)
override void EnterState(InternalEnlistment enlistment)
override void ChangeStatePreparing(InternalEnlistment enlistment)
override void InternalAborted(InternalEnlistment enlistment)
override void EnlistmentDone(InternalEnlistment enlistment)
override void Prepared(InternalEnlistment enlistment)
static VolatileEnlistmentPreparingAborting VolatileEnlistmentPreparingAborting
static VolatileEnlistmentEnded VolatileEnlistmentEnded
static VolatileEnlistmentPrepared VolatileEnlistmentPrepared
void Prepare(PreparingEnlistment preparingEnlistment)