示例#1
0
        public override void ProcessMessage(RabbitMQ.Client.Events.BasicDeliverEventArgs message)
        {
            JobCrlProperties jobDownloadHtml = JobCrlProperties.FromJson(UTF8Encoding.UTF8.GetString(Decompress(message.Body)));

            _handlerParserProperties.ProcessJob(jobDownloadHtml.ProductId, jobDownloadHtml.Html);
            this.GetChannel().BasicAck(message.DeliveryTag, true);
            Logger.InfoFormat("Processed {0}", jobDownloadHtml.ProductId);
        }
示例#2
0
 public override void ProcessMessage(BasicDeliverEventArgs message)
 {
     try
     {
         JobCrlProperties jobDownloadHtml = JobCrlProperties.FromJson(Encoding.UTF8.GetString(message.Body));
         if (jobDownloadHtml != null)
         {
             _h1.ProcessJob(jobDownloadHtml);
         }
         this.GetChannel().BasicAck(message.DeliveryTag, true);
     }
     catch (System.Exception ex1)
     {
         throw;
     }
 }