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

◆ EnlistPromotableSinglePhase() [2/2]

bool System.Transactions.Transaction.EnlistPromotableSinglePhase ( IPromotableSinglePhaseNotification promotableSinglePhaseNotification,
Guid promoterType )
inlineinherited

Definition at line 610 of file Transaction.cs.

611 {
612 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
613 if (log.IsEnabled())
614 {
615 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "EnlistPromotableSinglePhase");
616 }
617 if (Disposed)
618 {
619 throw new ObjectDisposedException("Transaction");
620 }
622 {
623 throw new ArgumentNullException("promotableSinglePhaseNotification");
624 }
625 if (promoterType == Guid.Empty)
626 {
627 throw new ArgumentException(System.SR.PromoterTypeInvalid, "promoterType");
628 }
629 if (_complete)
630 {
631 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
632 }
633 bool result = false;
635 {
637 }
638 if (log.IsEnabled())
639 {
640 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "EnlistPromotableSinglePhase");
641 }
642 return result;
643 }
static string PromoterTypeInvalid
Definition SR.cs:82
Definition SR.cs:7
virtual bool EnlistPromotableSinglePhase(InternalTransaction tx, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction, Guid promoterType)
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.TransactionState.EnlistPromotableSinglePhase(), System.Transactions.TransactionsEtwProvider.Log, System.SR.PromoterTypeInvalid, and System.Transactions.InternalTransaction.State.