public ConsumerDownloadHtml(RabbitMQServer rabbitmqServer, string domain) : base(rabbitmqServer, Config.QueueWaitDownloadHtml + "." + domain, false) { _noSqlHtml = NoSqlCommentSystem.Instance(); _queueAS = Config.QueueWaitAsComment + "." + domain; _producerAfterDownload = new ProducerBasic(rabbitmqServer, Config.QueueWaitAsComment + "." + domain); }
public ConsumerAsComment(RabbitMQServer rabbitmqServer) : base(rabbitmqServer, Config.QueueWaitAsComment, false) { string domain = "lazada.vn"; _noSqlHtml = NoSqlCommentSystem.Instance(); _producerComment = new ProducerBasic(rabbitmqServer, "Comment", "Comment.CommentUser.#"); using (var db = new DsConfigurationCommentTableAdapters.Configuration_CommentTableAdapter()) { DsConfigurationComment.Configuration_CommentDataTable tbl = new DsConfigurationComment.Configuration_CommentDataTable(); db.FillByCompanyDomain(tbl, domain); _configuration = tbl.Rows[0] as DsConfigurationComment.Configuration_CommentRow; } }