Esempio n. 1
0
        public void GetHtml()
        {
            var    noSql = NoSqlCommentSystem.Instance();
            string str   = noSql.GetHtml(9799686953136939, 3502170206813664485);

            Assert.AreNotEqual(str, "");
        }
Esempio n. 2
0
        private void pushReAnalysicToolStripMenuItem_Click(object sender, EventArgs e)
        {
            long companyId = Convert.ToInt64(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "CompanyId"));
            NoSqlCommentSystem noSqlCommentSystem = NoSqlCommentSystem.Instance();
            var           lstJOb = noSqlCommentSystem.GetAllJobBySite(companyId);
            ProducerBasic producerBasicPushAS = new ProducerBasic(RabbitMQManager.GetRabbitMQServer(Config.RabbitMQServerComment), Config.QueueWaitAsComment);

            foreach (var VARIABLE in lstJOb)
            {
                producerBasicPushAS.Publish(new JobWaitAS()
                {
                    CompanyId = companyId,
                    Id        = VARIABLE.Item1,
                    Url       = VARIABLE.Item2,
                }.ToObjMQ());
            }
        }