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

◆ DependentClone()

DependentTransaction System.Transactions.Transaction.DependentClone ( DependentCloneOption cloneOption)
inlineinherited

Definition at line 546 of file Transaction.cs.

547 {
548 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
549 if (log.IsEnabled())
550 {
551 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "DependentClone");
552 }
553 if (cloneOption != 0 && cloneOption != DependentCloneOption.RollbackIfNotComplete)
554 {
555 throw new ArgumentOutOfRangeException("cloneOption");
556 }
557 if (Disposed)
558 {
559 throw new ObjectDisposedException("Transaction");
560 }
561 if (_complete)
562 {
563 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
564 }
565 DependentTransaction dependentTransaction = new DependentTransaction(_isoLevel, _internalTransaction, cloneOption == DependentCloneOption.BlockCommitUntilComplete);
566 if (log.IsEnabled())
567 {
568 log.TransactionCloneCreate(dependentTransaction, "DependentTransaction");
569 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "DependentClone");
570 }
572 }
InternalTransaction _internalTransaction

References System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.Transactions.Transaction._isoLevel, System.Transactions.TransactionException.CreateTransactionCompletedException(), System.Runtime.Serialization.Dictionary, System.Transactions.Transaction.Disposed, System.Transactions.Transaction.DistributedTxId, and System.Transactions.TransactionsEtwProvider.Log.

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