Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MqBro rabbitMq = new MqBro();

            rabbitMq.Connection();
            rabbitMq.MessageReceived += rabbitMq_MessageReceived;
            while (true)
            {
                Thread.Sleep(Sleep);
                rabbitMq.Received(RoutingKey);
            }
            rabbitMq.Disconnection();
        }
Ejemplo n.º 2
0
 void _timer_received_Elapsed(object sender, ElapsedEventArgs e)
 {
     _messengerMq.Received();
 }