public void processPayment(bankEntity bankEntity) { Thread.Sleep(2000); var res = new inTimeEntity { PaymentResult = "ok", BankEnt = new paymentService.bankEntity { PayId = bankEntity.PayId } }; var t = Task.Factory.StartNew(() => { using (var req = new PaymentServiceClient()) { req.paymentResultHook(res); } }); t.Wait(100); //Thread.Sleep(3000); // var res = new inTimeEntity(); // res.PaymentResult = "ok"; }
public void processPaymentHelp(bankEntity bankEntity) { Thread.Sleep(2000); var res = new inTimeEntity { PaymentResult = "ok", BankEnt = new paymentService.bankEntity { PayId = bankEntity.PayId } }; var t = Task.Factory.StartNew(() => { using (var req = new PaymentServiceClient()) { req.paymentResultHookHelp(res); } }); t.Wait(100); //Thread.Sleep(3000); // var res = new inTimeEntity(); // res.PaymentResult = "ok"; }