示例#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();
        }
示例#2
0
文件: CRMService.cs 项目: vebin/CRM
 void _timer_received_Elapsed(object sender, ElapsedEventArgs e)
 {
     _messengerMq.Received();
 }