public void Response(ReqMsgHandler handler) { if (_busReady && handler != null) { MsgBus.Response(handler); } else { log.ErrorFormat("Msgbus or ReqMsgHandler is null."); } }
//private bool IsTimeout(long started, int timeout) //{ // return (System.DateTime.Now.Ticks - started) / 1000 / 10000 >= timeout; //} public void Response(ReqMsgHandler handler) { this.reqMsgHandler = handler; }