Exemplo n.º 1
0
        public async Task <IRpcMethodResult> testQueue()
        {
            try
            {
                var res = await MQTesting1.SendAndWaitReply(60000);

                return(this.Ok(res));
            }
            catch (MQReplyTimeoutException)
            {
                return(Bad(RPCERR.ACTION_TIMEOUT));
            }
        }
Exemplo n.º 2
0
 public static async Task StartQueueDaemon()
 {
     MQReplyCenter.Start();
     MQTesting1.StartReceiving(5);
     MQUserCreate.StartReceiving(1);
 }