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

◆ ThrowIfPromoterTypeIsNotMSDTC()

void System.Transactions.InternalTransaction.ThrowIfPromoterTypeIsNotMSDTC ( )
inlinepackage

Definition at line 165 of file InternalTransaction.cs.

166 {
167 if (_promoterType != Guid.Empty && _promoterType != TransactionInterop.PromoterTypeDtc)
168 {
169 throw new TransactionPromotionException(System.SR.Format(System.SR.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
170 }
171 }
static string PromoterTypeUnrecognized
Definition SR.cs:84
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
override string ToString()
Definition Guid.cs:695

References System.Transactions.InternalTransaction._innerException, System.Transactions.InternalTransaction._promoterType, System.Guid.Empty, System.SR.Format(), System.Transactions.TransactionInterop.PromoterTypeDtc, System.SR.PromoterTypeUnrecognized, and System.Guid.ToString().

Referenced by System.Transactions.EnlistableStates.EnlistDurable(), System.Transactions.TransactionStatePhase0.EnlistDurable(), System.Transactions.TransactionStatePromotedBase.EnlistDurable(), System.Transactions.EnlistableStates.EnlistDurable(), System.Transactions.TransactionStatePhase0.EnlistDurable(), System.Transactions.TransactionStatePromotedBase.EnlistDurable(), and System.Transactions.Transaction.Promote().