Пример #1
0
 public void SendGpuProfilesJson(string loginName, Guid clientId, string json) {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.GpuProfilesJsonRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetGpuProfilesJsonMqSendBody(json));
 }
Пример #2
0
 public void SendGpuProfilesJson(string loginName, Guid clientId, string json)
 {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty)
     {
         return;
     }
     _serverConnection.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: WsMqKeyword.GpuProfilesJsonRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetGpuProfilesJsonMqSendBody(json));
 }