public async Task <IRpcMethodResult> testQueue() { try { var res = await MQTesting1.SendAndWaitReply(60000); return(this.Ok(res)); } catch (MQReplyTimeoutException) { return(Bad(RPCERR.ACTION_TIMEOUT)); } }
public static async Task StartQueueDaemon() { MQReplyCenter.Start(); MQTesting1.StartReceiving(5); MQUserCreate.StartReceiving(1); }