コード例 #1
0
 public void SendSelfWorkLocalJson(string loginName, Guid clientId, string json) {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.SelfWorkLocalJsonRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSelfWorkLocalJsonMqSendBody(json));
 }
コード例 #2
0
 public void SendSelfWorkLocalJson(string loginName, Guid clientId, string json)
 {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty)
     {
         return;
     }
     _serverConnection.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: WsMqKeyword.SelfWorkLocalJsonRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSelfWorkLocalJsonMqSendBody(json));
 }