private void processCancelOrder(IDownStreamAdaptor adaptor, CancelOrderRequest req) { if (adaptor != null) { try { adaptor.cancelOrder(req.orderId); CancelOrderReply rsp = new CancelOrderReply(); rsp.result = true; rsp.orderId = req.orderId; rsp.exchangeAccount = req.exchangeAccount; rsp.message = "success"; _manager.Publish(rsp); } catch (Exception e) { CancelOrderReply rsp = new CancelOrderReply(); rsp.result = false; rsp.orderId = req.orderId; rsp.exchangeAccount = req.exchangeAccount; rsp.message = e.Message; _manager.Publish(rsp); } } else { CancelOrderReply rsp = new CancelOrderReply(); rsp.result = false; rsp.orderId = req.orderId; rsp.exchangeAccount = req.exchangeAccount; rsp.message = req.exchangeAccount + " not exist"; _manager.Publish(rsp); } }