Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting RabbitMQ queue processor");
            Console.WriteLine();

            Console.WriteLine("ROUTING KEY: *.medium.*");
            Console.WriteLine("ROUTING KEY: corporate.#");
            Console.WriteLine();

            var queueProcessor = new RabbitConsumer()
            {
                Enabled = true
            };

            queueProcessor.Start();

            Console.ReadLine();
        }
Esempio n. 2
0
 private static void Start(string[] args)
 {
     // onstart code here
     var queueProcessor = new RabbitConsumer() { Enabled = true };
     queueProcessor.Start();
 }