예제 #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);
        }
예제 #2
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);
        }