Exemplo n.º 1
0
 public void SendUpdateUserRSAKey(string loginName, RSAKey key)
 {
     if (string.IsNullOrEmpty(loginName) || key == null)
     {
         return;
     }
     _mq.BasicPublish(
         routingKey: MqKeyword.UpdateUserRSAKeyRoutingKey,
         basicProperties: CreateBasicProperties(loginName),
         body: UserMqBodyUtil.GetUpdateUserRSAKeyMqSendBody(key));
 }
Exemplo n.º 2
0
 public void SendUpdateUserRSAKey(string loginName, RSAKey key)
 {
     if (string.IsNullOrEmpty(loginName) || key == null)
     {
         return;
     }
     _serverConnection.MqChannel.BasicPublish(
         exchange: MqKeyword.NTMinerExchange,
         routingKey: MqKeyword.UpdateUserRSAKeyRoutingKey,
         basicProperties: CreateBasicProperties(loginName),
         body: UserMqBodyUtil.GetUpdateUserRSAKeyMqSendBody(key));
 }