Esempio n. 1
0
 /// <summary>
 /// MQ服务器链接
 /// </summary>
 private static void ListenMessage()
 {
     try
     {
         CN100.MSMQ.PoolClientManager client = new CN100.MSMQ.PoolClientManager("defaultConnect");
         MessageConsumer consumer = client.CreateMessageConsumer();
         consumer.Listener += new MessageConsumer.MessageListener(consumer_Listener);
     }
     catch (Exception ex)
     {
         Logger.MQLog.Fatal("侦听MQ消息出错,请检查MQ连接配置是否正确!", ex);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// MQ服务器链接
 /// </summary>
 private static void ListenMessage()
 {
     try
     {
         CN100.MSMQ.PoolClientManager client = new CN100.MSMQ.PoolClientManager("defaultConnect");
         MessageConsumer consumer            = client.CreateMessageConsumer();
         consumer.Listener += new MessageConsumer.MessageListener(consumer_Listener);
     }
     catch (Exception ex)
     {
         Logger.MQLog.Fatal("侦听MQ消息出错,请检查MQ连接配置是否正确!", ex);
     }
 }