FiddlerClient.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 
  2. using Microsoft.Extensions.Logging;
  3. using Newtonsoft.Json;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Reflection;
  10. using System.Security.Cryptography.X509Certificates;
  11. using System.ServiceModel;
  12. using System.Text;
  13. using System.Threading;
  14. using System.Threading.Tasks;
  15. using XYY.Core.Standard.FiddlerClient.Model;
  16. namespace XYY.Core.Standard.FiddlerClient
  17. {
  18. public class FiddlerClient : IDisposable
  19. {
  20. public void Dispose()
  21. {
  22. }
  23. public static void SetProxy(System.ServiceModel.BasicHttpBinding basicHttpBinding)
  24. {
  25. }
  26. #region 事件处理方式
  27. /// <summary>
  28. /// 命中请求
  29. /// 判断是否需要捕获
  30. /// </summary>
  31. /// <param name="oSession"></param>
  32. /// <returns></returns>
  33. //try
  34. //{
  35. // sessionsLock.EnterWriteLock();
  36. // sessions.Add(oSession);
  37. //}
  38. //finally
  39. //{
  40. // sessionsLock.ExitWriteLock();
  41. //}
  42. //if (isHitRequestFun(oSession))
  43. //{
  44. // string test = oSession.GetRequestBodyAsString();
  45. // string ss = oSession.RequestHeaders.ToString();
  46. // string aa = oSession.hostname;
  47. // int oSessionId = oSession.id;
  48. //}
  49. }
  50. #endregion
  51. #region 数据落地
  52. #endregion
  53. }