Exemple #1
0
        public void OnReceive(LoanRateBestQuoteFilled message)
        {
            Console.WriteLine("LoanBroker: " + message);

            StopProcess(message.LoanRateQuoteId);

            termination.Set();

            var best =
                new BestLoanRateQuoted(
                    message.BestBankLoanRateQuote.BankId,
                    message.LoanRateQuoteId,
                    message.TaxId,
                    message.Amount,
                    message.TermInMonths,
                    message.CreditScore,
                    message.BestBankLoanRateQuote.InterestRate);

            Console.WriteLine("Would be sent to original requester: " + best);
        }
        public void OnReceive(LoanRateBestQuoteFilled message)
        {
            Console.WriteLine("LoanBroker: " + message);

            StopProcess(message.LoanRateQuoteId);

            termination.Set();

            var best =
                new BestLoanRateQuoted(
                    message.BestBankLoanRateQuote.BankId,
                    message.LoanRateQuoteId,
                    message.TaxId,
                    message.Amount,
                    message.TermInMonths,
                    message.CreditScore,
                    message.BestBankLoanRateQuote.InterestRate);

            Console.WriteLine("Would be sent to original requester: " + best);
        }