HttpActionLang.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using XRTool.Util;
  2. using System.Net;
  3. using System.Security.Cryptography.X509Certificates;
  4. public class HttpActionLang : Singleton<HttpActionLang>
  5. {
  6. public const string signal_certification = "/cmcc-endustry/v1/signal/certification";
  7. public const string signal_contact = "/cmcc-endustry/v1/signal/contact";
  8. public const string rtc_CreateRoom = "/cmcc-endustry/v1/rtc/createRoom";
  9. public const string rtc_JoinRoom = "/cmcc-endustry/v1/rtc/joinRoom";
  10. public const string login = "/cmcc-endustry/v1/user/login";
  11. public const string userinfo = "/cmcc-endustry/v1/user/info";
  12. public const string apply = "/cmcc-endustry/v1/assistance/apply";
  13. public const string cancel_Apply = "/cmcc-endustry/v1/assistance/cancel";
  14. public const string inspection_begin = "/cmcc-endustry/v1/inspection/begin"; // 机房巡检开始
  15. public const string inspection_step = "/cmcc-endustry/v1/inspection/step"; // 机房巡检步骤上报
  16. public const string storage_inspectionCredential = "/cmcc-endustry/v1/storage/inspectionCredential"; //
  17. public const string storage_roomCredential = "/cmcc-endustry/v1/storage/roomCredential"; //
  18. public const string rtc_leave = "/cmcc-endustry/v1/assistance/leave";
  19. // public const string storage_roomCredential = "";
  20. /// <summary>
  21. /// 获取刀片机详细信息
  22. /// </summary>
  23. public const string bladeServer = "/cmcc-endustry/v1/navigation/device";
  24. /// <summary>
  25. /// 获取机房信息
  26. /// </summary>
  27. public const string sceneInit = "/cmcc-endustry/v1/navigation/cabinet";
  28. /// <summary>
  29. /// 修改机柜信息
  30. /// </summary>
  31. public const string updateCabinet = "/cmcc-endustry/v1/navigation/updateCabinet";
  32. /// <summary>
  33. /// 修改场景TagData
  34. /// </summary>
  35. public const string updateTag = "/cmcc-endustry/v1/navigation/updateRoomTagData";
  36. public string mqttSocket ="";
  37. public string mqttPort = "";
  38. public static void BypassSSLValidation()
  39. {
  40. System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
  41. // 绕过所有SSL证书验证
  42. ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
  43. }
  44. }