From the course: Learning RabbitMQ

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Show chat users

Solution: Show chat users - RabbitMQ Tutorial

From the course: Learning RabbitMQ

Start my 1-month free trial

Solution: Show chat users

(upbeat music) - [Instructor] To solve this challenge, let's first add some new users to RabbitMQ. So let me log in. And in the admin section, we can add a new user which I'll just call user one. And I use the same value for the password to keep things simple. Then I'll select the user and set the permissions for the virtual host. And I'll add a second user which I'll call user two. Again, with user two as password. And again, we set the permissions for the virtual host. Now you can add more users but two will be enough for now. Back in our code, we can ask the user to specify a username. So I'll do Console.WriteLine, please specify a username. And then we can do var username equals Console.ReadLine. I'll also put the password in a variable which will just be the same as the username. Now we have to change our connection string. So instead of chats as username and password, I'll use our variables. And the password…

Contents