omansak / libvideo

A lightweight .NET library to download YouTube videos.
BSD 2-Clause "Simplified" License
538 stars 163 forks source link

IHttpClientFactory support #278

Closed MaxLevs closed 2 months ago

MaxLevs commented 1 year ago

I really miss the feature to use the IHttpClientFactory to produce a HttpClient instance. It would be great to have this feature as well as DI support.

omansak commented 10 months ago

Can u try write your own custom client like as https://github.com/omansak/libvideo/blob/master/src/libvideo.debug/CustomYoutubeClient.cs

techiedesu commented 10 months ago

IHttpClientFactory requires .net standard 2.0 or higher, but current target is netstandard1.1. So, why not use HttpClient?