public async Task <IRpcMethodResult> test() { try { var helper = new UserHelper(); var guid = helper.GenUid(); var phoneno = "XXX" + F.Random(100000000, 999999999); var res = await MQUserCreate.CreateUser(guid.ToString(), phoneno); // await Task.Delay(1000); res = await MQUserCreate.CreateUser(guid.ToString(), phoneno); return(this.Ok(res)); } catch (MQReplyTimeoutException) { return(Bad(RPCERR.ACTION_TIMEOUT)); } }
public static async Task StartQueueDaemon() { MQReplyCenter.Start(); MQTesting1.StartReceiving(5); MQUserCreate.StartReceiving(1); }