Sin descripción

Peoplewebsite.cs 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using CallCenter.Utility;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Net;
  7. using System.Security.Cryptography;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace CallCenter.QuartzService
  11. {
  12. public class Peoplewebsite : QuartzJob
  13. {
  14. public Peoplewebsite()
  15. {
  16. CronExpression = "0 0/30 * * * ?";
  17. DoWork += GetLY;
  18. }
  19. public void GetLY(object sender, EventArgs e)
  20. {
  21. // WebClient web = new WebClient();
  22. // web.Encoding = Encoding.UTF8;
  23. // string Dataurl = web.DownloadString("http://localhost/APPS/GetLY" + "?display=1&searchState=wait_to_answer");
  24. var Dataurl = HttpMethods.HttpPost("http://localhost/APPS/GetLY", "display=1&searchState=wait_to_answer");
  25. LogFactory.GetLogger("33333").Warn(Dataurl);
  26. if (!string.IsNullOrEmpty(Dataurl))
  27. {
  28. var Dataur2 = HttpMethods.HttpPost("http://localhost/APPS/GetLY", "display=2&searchState=wait_to_first_explain");
  29. // string Dataur2 = web.DownloadString("http://localhost/APPS/GetLY" + "?display=2&searchState=wait_to_first_explain");
  30. LogFactory.GetLogger("444444").Warn(Dataur2);
  31. if (!string.IsNullOrEmpty(Dataur2))
  32. {
  33. var Dataur3 = HttpMethods.HttpPost("http://localhost/APPS/GetLY", "display=2&searchState=wait_to_second_explain");
  34. // string Dataur3 = web.DownloadString("http://localhost/APPS/GetLY" + "?display=2&searchState=wait_to_second_explain");
  35. LogFactory.GetLogger("55555").Warn(Dataur3);
  36. }
  37. }
  38. }
  39. }
  40. }