BatchRechargingManage.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using EasyNetQ;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using XYY.Service.Strandard.EMailService;
  5. using XYY.TaskTrack.Standard;
  6. namespace XYY.Service.JobManage
  7. {
  8. public class BatchRechargingManage
  9. {
  10. WebApiJobManage<ExpressFeechargesModel> webApiJobManage;
  11. public BatchRechargingManage(
  12. IMQManager mQManager,
  13. IEmailService emailService,
  14. string[] toList,
  15. IBatchRechargingJobGetService batchRechargingService,
  16. IJobDbService jobDbService)
  17. {
  18. webApiJobManage = new WebApiJobManage<ExpressFeechargesModel>(mQManager,
  19. "http://120.24.149.148:9503/api/ExpressFee/Charges2",
  20. new Dictionary<string, string> { { "Authorization", "token 132A7468DE079C6CEB59F383A661E612" } },
  21. emailService,
  22. toList,
  23. "郑州分公司重算",
  24. jobDbService,
  25. batchRechargingService);
  26. }
  27. public async Task Start()
  28. {
  29. await webApiJobManage.StartJobs();
  30. }
  31. }
  32. }