Browse Source

发送加虚拟机

lcl 1 year ago
parent
commit
c03e0a3f5f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      AppStart/RabbitMQClient.cs

+ 2 - 1
AppStart/RabbitMQClient.cs

@@ -136,7 +136,8 @@ namespace MySystem
                 UserName = UserName,
                 Password = Password,
                 AutomaticRecoveryEnabled = true,  //如果connection挂掉是否重新连接
-                TopologyRecoveryEnabled = true  //连接恢复后,连接的交换机,队列等是否一同恢复
+                TopologyRecoveryEnabled = true,  //连接恢复后,连接的交换机,队列等是否一同恢复
+                VirtualHost = VirtualHostName,
             };
             List<AmqpTcpEndpoint> p = new List<AmqpTcpEndpoint>();
             string[] HostNames = HostName.Split(',');