c# – .NET 4.5 HttpClient请求ServicePoint

到目前为止我一直用到:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(targetUri);

do the request
.................
request.ServicePoint. 

现在我想使用.net 4.5中的新HttpClient,我不知道如何访问ServicePoint属性.

任何想法如何使用HttpClient访问ServicePoint?

最佳答案 我相信你必须使用
ServicePointManager来做你想做的事.就像是;

ServicePointManager.FindServicePoint(targetUri)
点赞