Advertisement
Guest User

Untitled

a guest
Apr 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public class Program
  2. {
  3. public static void Main(string[] args)
  4. {
  5. var bus = GetBusClient();
  6. var tester = new PrimesHandler();
  7. tester.Handle(bus);
  8.  
  9. Console.WriteLine("================================================");
  10. Console.WriteLine("Hit <Enter> to exit...");
  11. Console.WriteLine("================================================");
  12. Console.ReadLine();
  13. }
  14.  
  15. public static IBusClient GetBusClient()
  16. {
  17. var config = new RawRabbitConfiguration
  18. {
  19. Hostnames = { "192.168.99.100" },
  20. Port = 5672,
  21. VirtualHost = "/",
  22. Username = "guest",
  23. Password = "guest"
  24. };
  25. var client = BusClientFactory.CreateDefault(config);
  26. return client;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement