Advertisement
vitareinforce

setting virtualhost

Sep 8th, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void InitRMQConnection(string host = "rmq2.pptik.id", int port = 5672, string user = "TMDG2022", string pass = "TMDG2022", string vhost="/TMDG2022")
  2. {
  3. connectionFactory = new ConnectionFactory();
  4. connectionFactory.HostName = host;
  5. connectionFactory.Port = port;
  6. connectionFactory.UserName = user;
  7. connectionFactory.Password = pass;
  8. connectionFactory.VirtualHost = vhost;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement