I'm trying to convert an existing class library code to a .NET Core class library. In that code in a static
constructor I have the following:
ServicePointManager.DefaultConnectionLimit = 100;
ServicePointManager.Expect100Continue = false;
I did some searching and ServicePointManager
is no longer available in .NET Core, and WinHttpHandler
should be used now (ServicePointManager.DefaultConnectionLimit in .net core?).
My question is what exactly is the ServicePointManager
and what are those properties that are being set?
The WinHttpHandler
is not static
as ServicePointManager
so I'd have to create an instance to set those properties? do I need to change all my http calls to make use of that instance?