/// <summary> /// 同步模式:处理 /// </summary> /// <param name="msg"></param> /// <returns></returns> public override object ExecuteMessageRequest(string serviceName, WQMessage msg) { Log.Write(LogAction.Info, serviceName, className, "ExecuteMessageRequest", 0, msg.ToString()); DovaResponse res = new DovaResponse(); if (msg.Body != null) res.Body = msg.Body.ToString(); else res.Body = "请求的body为空"; res.TransactionID = msg.TransactionID; res.Status = 1; res.Message = "这是一个对服务:" + serviceName + "的消息响应"; return res; }
public DovaResponse Test(WQMessage msg) { DovaResponse res = new DovaResponse(); if (msg.Body != null) res.Body = msg.Body.ToString(); else res.Body = "请求的body为空"; res.TransactionID = msg.TransactionID; res.Status = 1; res.Message = "测试响应消息:"; return res; }