.NET 4.5 HttpClient请求ServicePoint
到目前为止我一直用到:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(targetUri); do the request ................. request.ServicePoint.
现在我想使用.net 4.5中的新HttpClient,我不知道如何访问ServicePoint属性。
任何想法如何使用HttpClient访问ServicePoint?
我相信你必须使用ServicePointManager来做你想要的。 就像是;
上述就是C#学习教程:.NET 4.5 HttpClient请求ServicePoint分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!
ServicePointManager.FindServicePoint(targetUri)
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/cdevelopment/949764.html