예제 #1
0
파일: RpcTest.cs 프로젝트: jimliuxyz/UW
        public async Task <IRpcMethodResult> testQueue()
        {
            try
            {
                var res = await MQTesting1.SendAndWaitReply(60000);

                return(this.Ok(res));
            }
            catch (MQReplyTimeoutException)
            {
                return(Bad(RPCERR.ACTION_TIMEOUT));
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: jimliuxyz/UW
 public static async Task StartQueueDaemon()
 {
     MQReplyCenter.Start();
     MQTesting1.StartReceiving(5);
     MQUserCreate.StartReceiving(1);
 }