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