Program.cs 743 B

12345678910111213141516171819202122232425
  1. namespace metrics_collector
  2. {
  3. using System;
  4. // TODO: import library
  5. class MetricsCollector
  6. {
  7. static void Main(string[] args)
  8. {
  9. string url = "amqp://localhost:61616";
  10. string address = "sampleQueue";
  11. // TODO: create and initialise messaging objects
  12. Console.WriteLine("Receiving random metrics from " + url + "/" + address);
  13. while (true) {
  14. // TODO: receive the message, if any
  15. // TODO: only display the message if there is one
  16. Console.WriteLine("Got: " + null);
  17. //continue;
  18. System.Threading.Thread.Sleep(1000);
  19. }
  20. }
  21. }
  22. }