예제 #1
0
 public void SendSetAutoBootStart(string loginName, Guid clientId, SetAutoBootStartRequest body) {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty) {
         return;
     }
     _mq.BasicPublish(
         routingKey: WsMqKeyword.SetAutoBootStartRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSetAutoBootStartMqSendBody(body));
 }
예제 #2
0
 public void SendSetAutoBootStart(string loginName, Guid clientId, SetAutoBootStartRequest body)
 {
     if (string.IsNullOrEmpty(loginName) || clientId == Guid.Empty)
     {
         return;
     }
     _serverConnection.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: WsMqKeyword.SetAutoBootStartRoutingKey,
         basicProperties: CreateBasicProperties(loginName, clientId),
         body: OperationMqBodyUtil.GetSetAutoBootStartMqSendBody(body));
 }