Exemplo n.º 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));
 }
Exemplo n.º 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));
 }