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)); }
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)); }