示例#1
0
        public void StartRunConsumer()
        {
            string queueToMQSolverName = ConfigurationManager.AppSettings["QueueToMQGeneratorName"];

            consumer = new RabbitConsumer <string>(queueToMQSolverName);
            consumer.DequeueMessageDel = OnGetMessageFromSolver;
            consumer.ProcessMessages();
        }
示例#2
0
 public void RunConsumer(string queueName)
 {
     consumer = new RabbitConsumer <string>(queueName);
     consumer.DequeueMessageDel = OnGetMessageFromGenerator;
     consumer.ProcessMessages();
 }