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 - RabbitMQ Tutorial
From the course: Learning RabbitMQ
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Set up and use authentication3m 51s
-
(Locked)
Authorize or block application actions4m 44s
-
(Locked)
Validate user IDs3m 18s
-
Working with dead letter exchanges8m 3s
-
(Locked)
Tracing message contents for troubleshooting4m 6s
-
(Locked)
Challenge: Show chat users38s
-
(Locked)
Solution: Show chat users3m 15s
-
(Locked)
-