Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EnlistmentState.cs
Go to the documentation of this file.
2
3namespace System.Transactions;
4
5internal abstract class EnlistmentState
6{
8
9 private static object s_classSyncObject;
10
12
13 internal abstract void EnterState(InternalEnlistment enlistment);
14
15 internal virtual void EnlistmentDone(InternalEnlistment enlistment)
16 {
17 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
18 }
19
20 internal virtual void Prepared(InternalEnlistment enlistment)
21 {
22 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
23 }
24
25 internal virtual void ForceRollback(InternalEnlistment enlistment, Exception e)
26 {
27 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
28 }
29
30 internal virtual void Committed(InternalEnlistment enlistment)
31 {
32 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
33 }
34
35 internal virtual void Aborted(InternalEnlistment enlistment, Exception e)
36 {
37 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
38 }
39
40 internal virtual void InDoubt(InternalEnlistment enlistment, Exception e)
41 {
42 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
43 }
44
45 internal virtual byte[] RecoveryInformation(InternalEnlistment enlistment)
46 {
47 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
48 }
49
50 internal virtual void InternalAborted(InternalEnlistment enlistment)
51 {
52 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
53 }
54
55 internal virtual void InternalCommitted(InternalEnlistment enlistment)
56 {
57 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
58 }
59
60 internal virtual void InternalIndoubt(InternalEnlistment enlistment)
61 {
62 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
63 }
64
65 internal virtual void ChangeStateCommitting(InternalEnlistment enlistment)
66 {
67 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
68 }
69
70 internal virtual void ChangeStatePromoted(InternalEnlistment enlistment, IPromotedEnlistment promotedEnlistment)
71 {
72 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
73 }
74
75 internal virtual void ChangeStateDelegated(InternalEnlistment enlistment)
76 {
77 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
78 }
79
80 internal virtual void ChangeStatePreparing(InternalEnlistment enlistment)
81 {
82 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
83 }
84
85 internal virtual void ChangeStateSinglePhaseCommit(InternalEnlistment enlistment)
86 {
87 throw TransactionException.CreateEnlistmentStateException(null, enlistment?.DistributedTxId ?? Guid.Empty);
88 }
89}
virtual void ChangeStateDelegated(InternalEnlistment enlistment)
virtual void ChangeStatePreparing(InternalEnlistment enlistment)
void EnterState(InternalEnlistment enlistment)
virtual void ChangeStateCommitting(InternalEnlistment enlistment)
virtual void ChangeStateSinglePhaseCommit(InternalEnlistment enlistment)
virtual void Aborted(InternalEnlistment enlistment, Exception e)
virtual void InDoubt(InternalEnlistment enlistment, Exception e)
virtual void ChangeStatePromoted(InternalEnlistment enlistment, IPromotedEnlistment promotedEnlistment)
virtual void EnlistmentDone(InternalEnlistment enlistment)
virtual void ForceRollback(InternalEnlistment enlistment, Exception e)
virtual byte[] RecoveryInformation(InternalEnlistment enlistment)
virtual void Prepared(InternalEnlistment enlistment)
virtual void Committed(InternalEnlistment enlistment)
virtual void InternalCommitted(InternalEnlistment enlistment)
static EnlistmentStatePromoted _enlistmentStatePromoted
static EnlistmentStatePromoted EnlistmentStatePromoted
virtual void InternalAborted(InternalEnlistment enlistment)
virtual void InternalIndoubt(InternalEnlistment enlistment)
static Exception CreateEnlistmentStateException(Exception innerException, Guid distributedTxId)
static readonly Guid Empty
Definition Guid.cs:86