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

◆ Complete()

void System.Transactions.TransactionScope.Complete ( )
inline

Definition at line 551 of file TransactionScope.cs.

552 {
553 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
554 if (log.IsEnabled())
555 {
556 log.MethodEnter(TraceSourceType.TraceSourceBase, this, "Complete");
557 }
558 if (_disposed)
559 {
560 throw new ObjectDisposedException("TransactionScope");
561 }
562 if (_complete)
563 {
564 throw TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase, System.SR.DisposeScope, null);
565 }
566 _complete = true;
567 if (log.IsEnabled())
568 {
569 log.MethodExit(TraceSourceType.TraceSourceBase, this, "Complete");
570 }
571 }
static string DisposeScope
Definition SR.cs:26
Definition SR.cs:7

References System.Transactions.TransactionScope._complete, System.Transactions.TransactionScope._disposed, System.Transactions.TransactionException.CreateInvalidOperationException(), System.SR.DisposeScope, System.Diagnostics.Tracing.EventSource.IsEnabled(), System.Transactions.TransactionsEtwProvider.Log, System.Transactions.TransactionsEtwProvider.MethodEnter(), and System.Transactions.TransactionsEtwProvider.MethodExit().