public void paymentResultHookHelp(inTimeEntity payResult) { var ip = "jimmyMStation";// "172.16.144.70"; var port = 6379; using (var help = helpBase.init(ip, port, new TimeSpan(0, 5, 0))) { var subItem = help.get(payResult.BankEnt.PayId);; //var waitTime = 5000; //var res = help.inTimePaymentResultHelp(subItem, payResult.PaymentResult, waitTime, () => //{ // return true; //}); var res = help.inTimePaymentResultHelp(subItem, payResult.PaymentResult, payMethod.sync); //return res; var methodRes = res; //var syncStr = "sync"; if (payMethod.sync.Equals(methodRes)) { //go sync } else { //go async } } }
public void paymentResultHook(inTimeEntity payResult) { var ip = "jimmyMStation";// "172.16.144.70"; var port = 6379; using (var help = helpBase.init(ip, port, new TimeSpan(0, 5, 0))) { var strTmp = help.get(payResult.BankEnt.PayId); var payInfoTmp = strTmp.FromJson<Dictionary<string, string>>(); //var subItem = payInfoTmp["billno"]; //var waitTime = 5000; //var t = help.subscriberInTime(subItem, waitTime); var pubItem = payInfoTmp["reqId"]; var pubValue = payResult.PaymentResult; var subNum = help.publish(pubItem, pubValue); //var methodRes = t.Result; if (subNum > 0) { //go selfMehod } else { //go async } //var syncStr = "sync"; //if (subNum > 0) //{ // //go sync //} //else //{ // //go async //} } }
public void paymentResultHook(inTimeEntity payResult) { var ip = "jimmyMStation";// "172.16.144.70"; var port = 6379; using (var help = helpBase.init(ip, port, new TimeSpan(0, 5, 0))) { var strTmp = help.get(payResult.BankEnt.PayId); var payInfoTmp = strTmp.FromJson <Dictionary <string, string> >(); //var subItem = payInfoTmp["billno"]; //var waitTime = 5000; //var t = help.subscriberInTime(subItem, waitTime); var pubItem = payInfoTmp["reqId"]; var pubValue = payResult.PaymentResult; var subNum = help.publish(pubItem, pubValue); //var methodRes = t.Result; if (subNum > 0) { //go selfMehod } else { //go async } //var syncStr = "sync"; //if (subNum > 0) //{ // //go sync //} //else //{ // //go async //} } }