System.Transactions.InternalTransaction.ThrowIfPromoterTypeIsNotMSDTC C# (CSharp) 메소드

ThrowIfPromoterTypeIsNotMSDTC() 개인적인 메소드

private ThrowIfPromoterTypeIsNotMSDTC ( ) : void
리턴 void
        internal void ThrowIfPromoterTypeIsNotMSDTC()
        {
            if ((_promoterType != Guid.Empty) && (_promoterType != TransactionInterop.PromoterTypeDtc))
            {
                throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
            }
        }

Usage Example

예제 #1
0
 internal DistributedTransaction Promote()
 {
     lock (_internalTransaction)
     {
         // This method is only called when we expect to be promoting to MSDTC.
         _internalTransaction.ThrowIfPromoterTypeIsNotMSDTC();
         _internalTransaction.State.Promote(_internalTransaction);
         return(_internalTransaction.PromotedTransaction);
     }
 }
All Usage Examples Of System.Transactions.InternalTransaction::ThrowIfPromoterTypeIsNotMSDTC