示例#1
0
 public void SendGetOperationResults(AfterTimeRequest[] requests) {
     if (requests == null || requests.Length == 0) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.GetOperationResultsRoutingKey,
         basicProperties: CreateBasicProperties(),
         body: OperationMqBodyUtil.GetAfterTimeRequestMqSendBody(requests));
 }
示例#2
0
 public void SendGetLocalMessages(AfterTimeRequest[] requests)
 {
     if (requests == null || requests.Length == 0)
     {
         return;
     }
     _mq.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: WsMqKeyword.GetLocalMessagesRoutingKey,
         basicProperties: CreateBasicProperties(),
         body: OperationMqBodyUtil.GetAfterTimeRequestMqSendBody(requests));
 }