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

◆ Clone()

Transaction System.Transactions.Transaction.Clone ( )
inlineinherited

Definition at line 512 of file Transaction.cs.

513 {
514 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
515 if (log.IsEnabled())
516 {
517 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "Clone");
518 }
519 if (Disposed)
520 {
521 throw new ObjectDisposedException("Transaction");
522 }
523 if (_complete)
524 {
525 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
526 }
527 Transaction result = InternalClone();
528 if (log.IsEnabled())
529 {
530 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "Clone");
531 }
532 return result;
533 }
Transaction(IsolationLevel isoLevel, InternalTransaction internalTransaction)

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

Referenced by System.Transactions.TransactionScope.TransactionScope(), System.Transactions.TransactionScope.TransactionScope(), System.Transactions.TransactionScope.TransactionScope(), and System.Transactions.TransactionScope.TransactionScope().