开发者

ServicePointManager.DefaultConnectionLimit scope

Does changing ServicePointManager.DefaultConnectionLimit affec开发者_开发百科t only the current process or the whole .NET platform. Please provide source.


Setting properties of ServicePointManager pretty much does just that – it sets some static properties. (The actual code is more complicated than that, but I think that doesn't matter here.)

Those properties are used when creating new ServicePoint objects.

What follows from this is that their effect is as wide as for any other static property – that is one AppDomain.

While one process can have more than one AppDomain, most of the time, you deal only with one AppDomain per process. So, most of the time, setting the property affects the whole process. Sometimes not even that. It certainly doesn't affect other processes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜