示例#1
0
 public void SendSwitchRadeonGpu(string loginName, Guid clientId, bool on) {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.SwitchRadeonGpuRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSwitchRadeonGpuMqSendBody(on));
 }
示例#2
0
 public void SendSwitchRadeonGpu(string loginName, Guid clientId, bool on)
 {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty)
     {
         return;
     }
     _serverConnection.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: WsMqKeyword.SwitchRadeonGpuRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSwitchRadeonGpuMqSendBody(on));
 }