Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Complete()

void System.Transactions.DependentTransaction.Complete ( )
inline

Definition at line 24 of file DependentTransaction.cs.

25 {
26 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
27 if (log.IsEnabled())
28 {
29 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Complete");
30 }
32 {
33 if (base.Disposed)
34 {
35 throw new ObjectDisposedException("DependentTransaction");
36 }
37 if (_complete)
38 {
39 throw TransactionException.CreateTransactionCompletedException(base.DistributedTxId);
40 }
41 _complete = true;
42 if (_blocking)
43 {
45 }
46 else
47 {
49 }
50 }
51 if (log.IsEnabled())
52 {
53 log.TransactionDependentCloneComplete(this, "DependentTransaction");
54 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Complete");
55 }
56 }
virtual void CompleteBlockingClone(InternalTransaction tx)
virtual void CompleteAbortingClone(InternalTransaction tx)
InternalTransaction _internalTransaction

References System.Transactions.DependentTransaction._blocking, System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.Transactions.TransactionState.CompleteAbortingClone(), System.Transactions.TransactionState.CompleteBlockingClone(), System.Transactions.TransactionException.CreateTransactionCompletedException(), System.Diagnostics.Tracing.EventSource.IsEnabled(), System.Transactions.TransactionsEtwProvider.Log, System.Transactions.TransactionsEtwProvider.MethodEnter(), System.Transactions.TransactionsEtwProvider.MethodExit(), System.Transactions.InternalTransaction.State, and System.Transactions.TransactionsEtwProvider.TransactionDependentCloneComplete().

Referenced by System.Transactions.TransactionScope.InternalDispose().