9
我試圖將現有的類庫代碼轉換爲.NET Core類庫。在一個static
構造函數的代碼,我有以下幾點:ASP.NET Core中的ServicePointManager
ServicePointManager.DefaultConnectionLimit = 100;
ServicePointManager.Expect100Continue = false;
我做了一些搜索和ServicePointManager
不再.NET提供的核心,並WinHttpHandler
現在應該使用(ServicePointManager.DefaultConnectionLimit in .net core?)。
我的問題是究竟是什麼ServicePointManager
,什麼是正在設置的屬性?
WinHttpHandler
不是static
作爲ServicePointManager
所以我必須創建一個實例來設置這些屬性?我是否需要更改所有的http調用以使用該實例?從HttpMessageHandler