コード例 #1
0
        public void OnReceive(CreditChecked message)
        {
            Console.WriteLine("LoanBroker: " + message);

            var process = ProcessOf(message.CreditProcessingReferenceId);

            process.Tell(
                new EstablishCreditScoreForLoanRateQuote(
                    message.CreditProcessingReferenceId,
                    message.TaxId,
                    message.Score),
                Self);
        }
コード例 #2
0
        public void OnReceive(CheckCredit message)
        {
            Console.WriteLine("CreditBureau: " + message);

            int range = creditRanges[randomCreditRangeGenerator.Next(5)];
            int score = range + randomCreditScoreGenerator.Next(20);

            CreditChecked creditChecked =
                new CreditChecked(
                    message.CreditProcessingReferenceId,
                    message.TaxId,
                    score);

            Console.WriteLine("CreditBureau: Telling: " + creditChecked);

            Sender.Tell(creditChecked, Self);
        }
コード例 #3
0
        public void OnReceive(CreditChecked message)
        {
            Console.WriteLine("LoanBroker: " + message);

            var process = ProcessOf(message.CreditProcessingReferenceId);

            process.Tell(
                new EstablishCreditScoreForLoanRateQuote(
                    message.CreditProcessingReferenceId,
                    message.TaxId,
                    message.Score),
                Self);
        }
コード例 #4
0
        public void OnReceive(CheckCredit message)
        {
            Console.WriteLine("CreditBureau: " + message);

            int range = creditRanges[randomCreditRangeGenerator.Next(5)];
            int score = range + randomCreditScoreGenerator.Next(20);

            CreditChecked creditChecked =
                new CreditChecked(
                    message.CreditProcessingReferenceId,
                    message.TaxId,
                    score);

            Console.WriteLine("CreditBureau: Telling: " + creditChecked);

            Sender.Tell(creditChecked, Self);
        }