既存のクラスライブラリコードを.NETコアクラスライブラリに変換しようとしています。ASP.NETコアのServicePointManager
ServicePointManager.DefaultConnectionLimit = 100;
ServicePointManager.Expect100Continue = false;
私はいくつかの検索もしなかったし、(ServicePointManager.DefaultConnectionLimit in .net core?)ServicePointManager
は、もはや.NETのコアで利用可能で、WinHttpHandler
が今使用してください。static
コンストラクタでそのコードでは、私は以下のものを持っています。
私の質問は、正確にServicePointManager
とは何ですか、設定されているプロパティは何ですか?
WinHttpHandler
はstatic
であり、ServicePointManager
であるため、これらのプロパティを設定するにはインスタンスを作成する必要がありますか?そのインスタンスを利用するためにhttpコールをすべて変更する必要がありますか?構築時にHttpMessageHandler
から