コード例 #1
0
 protected override void OnStart(string[] args)
 {
     Task.Factory.StartNew(() =>
     {
         consumer = new ConsumerNotifyCompanyToSql(RabbitMQManager.GetRabbitMQServer(ConfigCrawler.KeyRabbitMqCrawler), "Notifycation.Warning.Company");
         consumer.StartConsume();
     });
 }
コード例 #2
0
        public void ConsumerNotifyCompanyToSqlTest()
        {
            ConsumerNotifyCompanyToSql consumer = new ConsumerNotifyCompanyToSql(RabbitMQManager.GetRabbitMQServer(ConfigCrawler.KeyRabbitMqCrawler), "Notifycation.Warning.Company");

            consumer.StartConsume();
        }