public void StartRunConsumer() { string queueToMQSolverName = ConfigurationManager.AppSettings["QueueToMQGeneratorName"]; consumer = new RabbitConsumer <string>(queueToMQSolverName); consumer.DequeueMessageDel = OnGetMessageFromSolver; consumer.ProcessMessages(); }
public void RunConsumer(string queueName) { consumer = new RabbitConsumer <string>(queueName); consumer.DequeueMessageDel = OnGetMessageFromGenerator; consumer.ProcessMessages(); }