linvi / tweetinvi

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
MIT License
1k stars 220 forks source link

HttpClient as own parameter #1201

Open mikasoukhov opened 1 year ago

mikasoukhov commented 1 year ago

HttpClient is global object as a recommendation from MS. It is recommend use single instance per app https://www.aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/ Think will be good idea allow users pass this instance directly into TwitterClient.

penguinawesome commented 1 year ago

Hii @linvi please have a look at this issue. This is critical issue here since in .net it is recommended to reuse the http client. Please allow us to pass our own http client since we are using it for pooling.