public void SendGetOperationResults(AfterTimeRequest[] requests) { if (requests == null || requests.Length == 0) { return; } _mq.BasicPublish( routingKey: WsMqKeyword.GetOperationResultsRoutingKey, basicProperties: CreateBasicProperties(), body: OperationMqBodyUtil.GetAfterTimeRequestMqSendBody(requests)); }
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)); }