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

◆ PromoteAndEnlistDurable()

Enlistment System.Transactions.Transaction.PromoteAndEnlistDurable ( Guid resourceManagerIdentifier,
IPromotableSinglePhaseNotification promotableNotification,
ISinglePhaseNotification enlistmentNotification,
EnlistmentOptions enlistmentOptions )
inlineinherited

Definition at line 645 of file Transaction.cs.

646 {
647 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
648 if (log.IsEnabled())
649 {
650 log.MethodEnter(TraceSourceType.TraceSourceDistributed, this, "PromoteAndEnlistDurable");
651 }
652 if (Disposed)
653 {
654 throw new ObjectDisposedException("Transaction");
655 }
656 if (resourceManagerIdentifier == Guid.Empty)
657 {
658 throw new ArgumentException(System.SR.BadResourceManagerId, "resourceManagerIdentifier");
659 }
660 if (promotableNotification == null)
661 {
662 throw new ArgumentNullException("promotableNotification");
663 }
664 if (enlistmentNotification == null)
665 {
666 throw new ArgumentNullException("enlistmentNotification");
667 }
668 if (enlistmentOptions != 0 && enlistmentOptions != EnlistmentOptions.EnlistDuringPrepareRequired)
669 {
670 throw new ArgumentOutOfRangeException("enlistmentOptions");
671 }
672 if (_complete)
673 {
674 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
675 }
677 {
679 if (log.IsEnabled())
680 {
681 log.MethodExit(TraceSourceType.TraceSourceDistributed, this, "PromoteAndEnlistDurable");
682 }
683 return result;
684 }
685 }
static string BadResourceManagerId
Definition SR.cs:18
Definition SR.cs:7
virtual Enlistment PromoteAndEnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction)
InternalTransaction _internalTransaction

References System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.SR.BadResourceManagerId, 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.PromoteAndEnlistDurable(), and System.Transactions.InternalTransaction.State.