/// <summary> /// Initializes a new instance of the <see cref="TransactionStatusException"/> class. /// </summary> /// <param name="aMessagePairs">A paramater list of <see cref="MessagePair"/>s.</param> public TransactionStatusException(params MessagePair[] aMessagePairs) { Array.ForEach(aMessagePairs, vSourceMessagePair => { var vTargetMessagePair = new MessagePair(vSourceMessagePair.Message, vSourceMessagePair.Subject); _transactionStatus.MessagePairList.Add(vTargetMessagePair); }); ; }
/// <summary> /// Initializes a new instance of the <see cref="TransactionStatusException"/> class. /// </summary> /// <param name="aMessagePairs">A paramater list of <see cref="MessagePair"/>s.</param> public TransactionStatusException(params MessagePair[] aMessagePairs) { Array.ForEach(aMessagePairs, vSourceMessagePair => { var vTargetMessagePair = new MessagePair(vSourceMessagePair.Message, vSourceMessagePair.Subject); _transactionStatus.MessagePairList.Add(vTargetMessagePair); });; }
/// <summary> /// Assigns the fields and properties of aSource to this instance. /// </summary> /// <param name="aSource">A source TransactionStatus.</param> public void AssignFromSource(TransactionStatus aSource) { if (aSource == null) { return; } _transactionResult = aSource._transactionResult; _sourceAssembly = aSource._sourceAssembly; _targetUrl = aSource._targetUrl; _message = aSource._message; _innerMessage = aSource._innerMessage; aSource._messagePairList.ForEach(vSourceMessagePair => { var vTargetMessagePair = new MessagePair(vSourceMessagePair.Message, vSourceMessagePair.Subject); _messagePairList.Add(vTargetMessagePair); }); }