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