private void processAmendOrder(IDownStreamAdaptor adaptor, AmendOrderRequest req) { if (adaptor != null) { try { adaptor.amendOrder(req.orderId, req.price, req.quantity); AmendOrderReply rsp = new AmendOrderReply(); rsp.result = true; rsp.orderId = req.orderId; rsp.exchangeAccount = req.exchangeAccount; rsp.message = "sucess"; _manager.Publish(rsp); } catch (Exception e) { AmendOrderReply rsp = new AmendOrderReply(); rsp.result = false; rsp.orderId = req.orderId; rsp.exchangeAccount = req.exchangeAccount; rsp.message = e.Message; _manager.Publish(rsp); } } else { AmendOrderReply rsp = new AmendOrderReply(); rsp.result = false; rsp.orderId = req.orderId; rsp.message = req.exchangeAccount + " not exist"; _manager.Publish(rsp); } }