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

Create() static private method

static private Create ( TraceSourceType traceSource, string message, Exception innerException ) : TransactionInDoubtException
traceSource TraceSourceType
message string
innerException Exception
return TransactionInDoubtException
        internal static new TransactionInDoubtException Create(TraceSourceType traceSource, string message, Exception innerException)
        {
            TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
            if (etwLog.IsEnabled())
            {
                etwLog.TransactionExceptionTrace(traceSource, TransactionExceptionType.TransactionInDoubtException, message, innerException.ToString());
            }

            return new TransactionInDoubtException(message, innerException);
        }

Same methods

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

Usage Example

Example #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