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

◆ SetDistributedTransactionIdentifier()

void System.Transactions.Transaction.SetDistributedTransactionIdentifier ( IPromotableSinglePhaseNotification promotableNotification,
Guid distributedTransactionIdentifier )
inlineinherited

Definition at line 687 of file Transaction.cs.

688 {
689 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
690 if (log.IsEnabled())
691 {
692 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "SetDistributedTransactionIdentifier");
693 }
694 if (Disposed)
695 {
696 throw new ObjectDisposedException("Transaction");
697 }
698 if (promotableNotification == null)
699 {
700 throw new ArgumentNullException("promotableNotification");
701 }
703 {
704 throw new ArgumentException(null, "distributedTransactionIdentifier");
705 }
706 if (_complete)
707 {
708 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
709 }
711 {
713 if (log.IsEnabled())
714 {
715 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "SetDistributedTransactionIdentifier");
716 }
717 }
718 }
virtual void SetDistributedTransactionId(InternalTransaction tx, IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier)
InternalTransaction _internalTransaction

References System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.Transactions.TransactionException.CreateTransactionCompletedException(), System.Runtime.Serialization.Dictionary, System.Transactions.Transaction.Disposed, System.Transactions.Transaction.DistributedTxId, System.Guid.Empty, System.Transactions.TransactionsEtwProvider.Log, System.Transactions.TransactionState.SetDistributedTransactionId(), and System.Transactions.InternalTransaction.State.