Exemple #1
0
        public void OnReceive(QuoteBestLoanRate message)
        {
            var loanRateQuoteId = Guid.NewGuid().ToString();

            Console.WriteLine("Starting: " + message + " for Id: " + loanRateQuoteId);

            ActorRef loanRateQuote =
                Context.ActorOf(
                    typeof(LoanRateQuote),
                    Props.With(
                        loanRateQuoteId,
                        message.TaxId,
                        message.Amount,
                        message.TermInMonths,
                        Self));

            StartProcess(loanRateQuoteId, loanRateQuote);
        }
        public void OnReceive(QuoteBestLoanRate message)
        {
            var loanRateQuoteId = Guid.NewGuid().ToString();

            Console.WriteLine("Starting: " + message + " for Id: " + loanRateQuoteId);

            ActorRef loanRateQuote =
                Context.ActorOf(
                    typeof(LoanRateQuote),
                    Props.With(
                        loanRateQuoteId,
                        message.TaxId,
                        message.Amount,
                        message.TermInMonths,
                        Self));

            StartProcess(loanRateQuoteId, loanRateQuote);
        }