C# .NET 4.5 HttpClient请求服务点

C# .NET 4.5 HttpClient请求服务点,c#,.net-4.5,C#,.net 4.5,到目前为止,我一直使用: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(targetUri); do the request ................. request.ServicePoint. 现在我想使用.NET4.5中的新HttpClient,但我不知道如何访问ServicePoint属性 您知道如何使用HttpClient访问ServicePoint吗?我相信您必须使用来做您想做的事情。有点像 Ser

到目前为止,我一直使用:

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

do the request
.................
request.ServicePoint. 
现在我想使用.NET4.5中的新HttpClient,但我不知道如何访问ServicePoint属性


您知道如何使用HttpClient访问ServicePoint吗?

我相信您必须使用来做您想做的事情。有点像

ServicePointManager.FindServicePoint(targetUri)

您确定HttpWebRequest在HttpClient内部使用吗?我看了一下,找不到任何对HttpWebRequest的引用。@EugeneBeresovsky一点也不确定。也许我在脑子里读过WebClient()我会改变我的答案。