Esempio n. 1
0
 public void SendLocalMessages(string loginName, Guid clientId, List<LocalMessageDto> datas) {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty || datas == null || datas.Count == 0) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.LocalMessagesRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetLocalMessagesMqSendBody(datas));
 }