Пример #1
0
        public void OnReceive(CreditScoreForLoanRateQuoteDenied message)
        {
            Console.WriteLine("LoanBroker: " + message);

            var process = ProcessOf(message.LoanRateQuoteId);

            process.Tell(new TerminateLoanRateQuote(), Self);

            termination.Set();

            var denied =
                new BestLoanRateDenied(
                    message.LoanRateQuoteId,
                    message.TaxId,
                    message.Amount,
                    message.TermInMonths,
                    message.Score);

            Console.WriteLine("Would be sent to original requester: " + denied);
        }
Пример #2
0
        public void OnReceive(CreditScoreForLoanRateQuoteDenied message)
        {
            Console.WriteLine("LoanBroker: " + message);

            var process = ProcessOf(message.LoanRateQuoteId);

            process.Tell(new TerminateLoanRateQuote(), Self);

            termination.Set();

            var denied =
                new BestLoanRateDenied(
                    message.LoanRateQuoteId,
                    message.TaxId,
                    message.Amount,
                    message.TermInMonths,
                    message.Score);

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