예제 #1
0
 private static void handleWebServiceBank(LoanRequest loanRequest)
 {
     WebServiceBank.WebServiceBank webBank = new WebServiceBank.WebServiceBank();
     decimal msg = webBank.ProcessLoanRequest(loanRequest.SSN, loanRequest.CreditScore, loanRequest.Amount, loanRequest.Duration);
     //TODO: Send loanrequest info aswell as decimal msg
     //HandleMessaging.SendMessage<decimal>(Queues.WEBSERVICEBANK_OUT, msg);
     LoanResponse loanResponse = new LoanResponse()
     {
         SSN = loanRequest.SSN,
         BankName = "Our Web Bank",
         InterestRate = msg
     };
     HandleMessaging.SendMessage<LoanResponse>(Queues.NORMALIZER_OUT, loanResponse);
 }
예제 #2
0
        private static void handleWebServiceBank(LoanRequest loanRequest)
        {
            WebServiceBank.WebServiceBank webBank = new WebServiceBank.WebServiceBank();
            decimal msg = webBank.ProcessLoanRequest(loanRequest.SSN, loanRequest.CreditScore, loanRequest.Amount, loanRequest.Duration);
            //TODO: Send loanrequest info aswell as decimal msg
            //HandleMessaging.SendMessage<decimal>(Queues.WEBSERVICEBANK_OUT, msg);
            LoanResponse loanResponse = new LoanResponse()
            {
                SSN          = loanRequest.SSN,
                BankName     = "Our Web Bank",
                InterestRate = msg
            };

            HandleMessaging.SendMessage <LoanResponse>(Queues.NORMALIZER_OUT, loanResponse);
        }