开发者

How to read the current value of MaxConcurrentRequestsPerCPU

How can I read the current value of the MaxConcurrentRequestsPerCPU setting from code, i.e. for the current application pool? I don't mean reading it literally from a config file, but rather read the "resolved" value that is currently effective, regardless of where it was set (i.e. registry, machine开发者_运维问答.config, web.config...)


Try to read

 System.Web.Hosting.HostingEnvironment.MaxConcurrentRequestsPerCPU

This only works for .NET 4.x

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜