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