TaskRunner.cs 602 B

123456789101112131415161718192021222324
  1. using SMP.Message.Consumer.MQConsumers;
  2. namespace SMP.Message.Consumer
  3. {
  4. internal class TaskRunner
  5. {
  6. public void Start()
  7. {
  8. ConsumeMQ();
  9. }
  10. public void Stop() { }
  11. private void ConsumeMQ()
  12. {
  13. //消费成本利润报表消息
  14. MQManager.Subscribe(new CostProfitReportFileMessageConsumer());
  15. //导出文件任务
  16. MQManager.Subscribe(new ExportTaskMessageConsumer());
  17. //分摊任务
  18. MQManager.Subscribe(new SpreadTaskMessageConsumer());
  19. }
  20. }
  21. }