12345678910111213141516171819202122232425 |
- namespace metrics_collector
- {
- using System;
- // TODO: import library
- class MetricsCollector
- {
- static void Main(string[] args)
- {
- string url = "amqp://localhost:61616";
- string address = "sampleQueue";
- // TODO: create and initialise messaging objects
- Console.WriteLine("Receiving random metrics from " + url + "/" + address);
- while (true) {
- // TODO: receive the message, if any
- // TODO: only display the message if there is one
- Console.WriteLine("Got: " + null);
- //continue;
- System.Threading.Thread.Sleep(1000);
- }
- }
- }
- }
|