Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program
- {
- public static void Main(string[] args)
- {
- var bus = GetBusClient();
- var tester = new PrimesHandler();
- tester.Handle(bus);
- Console.WriteLine("================================================");
- Console.WriteLine("Hit <Enter> to exit...");
- Console.WriteLine("================================================");
- Console.ReadLine();
- }
- public static IBusClient GetBusClient()
- {
- var config = new RawRabbitConfiguration
- {
- Hostnames = { "192.168.99.100" },
- Port = 5672,
- VirtualHost = "/",
- Username = "guest",
- Password = "guest"
- };
- var client = BusClientFactory.CreateDefault(config);
- return client;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement