Beispiel #1
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);
        }
        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);
        }