System.Transactions.TransactionInDoubtException.Create C# (CSharp) Method

Create() static private method

static private Create ( TraceSourceType traceSource, string message, Exception innerException, Guid distributedTxId ) : TransactionInDoubtException
traceSource TraceSourceType
message string
innerException Exception
distributedTxId Guid
return TransactionInDoubtException
        internal static new TransactionInDoubtException Create(TraceSourceType traceSource, string message, Exception innerException, Guid distributedTxId)
        {
            string messagewithTxId = message;
            if (IncludeDistributedTxId(distributedTxId))
                messagewithTxId = string.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);

            return TransactionInDoubtException.Create(traceSource, messagewithTxId, innerException);
        }

Same methods

TransactionInDoubtException::Create ( TraceSourceType traceSource, string message, Exception innerException ) : TransactionInDoubtException

Usage Example

Esempio n. 1
0
 protected override void PromotedTransactionOutcome(InternalTransaction tx)
 {
     if ((tx.innerException == null) && (tx.PromotedTransaction != null))
     {
         tx.innerException = tx.PromotedTransaction.InnerException;
     }
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
All Usage Examples Of System.Transactions.TransactionInDoubtException::Create
TransactionInDoubtException