12345678910111213141516171819202122232425262728293031323334353637 |
- using EasyNetQ;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using XYY.Service.Strandard.EMailService;
- using XYY.TaskTrack.Standard;
- namespace XYY.Service.JobManage
- {
- public class BatchRechargingManage
- {
- WebApiJobManage<ExpressFeechargesModel> webApiJobManage;
- public BatchRechargingManage(
- IMQManager mQManager,
- IEmailService emailService,
- string[] toList,
- IBatchRechargingJobGetService batchRechargingService,
- IJobDbService jobDbService)
- {
- webApiJobManage = new WebApiJobManage<ExpressFeechargesModel>(mQManager,
- "http://120.24.149.148:9503/api/ExpressFee/Charges2",
- new Dictionary<string, string> { { "Authorization", "token 132A7468DE079C6CEB59F383A661E612" } },
- emailService,
- toList,
- "郑州分公司重算",
- jobDbService,
- batchRechargingService);
- }
- public async Task Start()
- {
- await webApiJobManage.StartJobs();
- }
- }
- }
|