ServicePointManager.DefaultConnectionLimit in .net core?

后端 未结 1 1669
别那么骄傲
别那么骄傲 2021-01-02 09:23

I am porting a web api 2 service to .net core and I found this line in my old web api service.

ServicePointManager.DefaultConnectionLimit = int.MaxValue;


        
相关标签:
1条回答
  • 2021-01-02 10:01

    In ASP.NET 5 apps, use WinHttpHandler.MaxConnectionsPerServer. Its default value is int.MaxValue.

    For details, see the .NET Portability Analyzer from the Visual Studio Gallery and WinHttpHandler.MaxConnectionsPerServer on MSDN.

    0 讨论(0)
提交回复
热议问题