System.Transactions.TransactionStatePromotedNonMSDTCEnded.AddOutcomeRegistrant C# (CSharp) Method

AddOutcomeRegistrant() private method

private AddOutcomeRegistrant ( InternalTransaction tx, TransactionCompletedEventHandler transactionCompletedDelegate ) : void
tx InternalTransaction
transactionCompletedDelegate TransactionCompletedEventHandler
return void
        internal override void AddOutcomeRegistrant(InternalTransaction tx, TransactionCompletedEventHandler transactionCompletedDelegate)
        {
            if (transactionCompletedDelegate != null)
            {
                TransactionEventArgs args = new TransactionEventArgs();
                args._transaction = tx._outcomeSource.InternalClone();
                transactionCompletedDelegate(args._transaction, args);
            }
        }