IPJob.cs 635 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using FCS.Common;
  8. using FCS.Interface;
  9. using Quartz;
  10. namespace FCS.Crawler.ZCLotteryIP
  11. {
  12. public class IPJob : CommonJob, IJob
  13. {
  14. public IPJob()
  15. {
  16. log = new LogHelper();
  17. }
  18. public void Execute(IJobExecutionContext context)
  19. {
  20. Config = CommonHelper.GetConfigFromDataMap(context.JobDetail.JobDataMap);
  21. GetIP();
  22. }
  23. public void GetIP()
  24. {
  25. IPHelper.GetIp();
  26. }
  27. }
  28. }