ComputerGhost / FaviconFetcher

Scan a webpage for favicons, or just easily download the one you want.
MIT License
5 stars 3 forks source link

Add async support, including cancellation tokens #25

Closed kiddailey closed 2 months ago

kiddailey commented 7 months ago

This pull request updates the library to be fullly asynchronous, resolving issue #14. It also includes support for cancellation tokens requested in issue #6.

Notes:

I realize that this is a pretty significant update and you may want to hold off on it, but figured I would submit the pull request for your review whenever. Let me know if you'd like any changes.

A pull request to resolve issue #16, replacing WebRequest with HttpClient will come separately. That update will probably be dependent on this one as HttpClient is async friendly. I may make it a separate ISource so that you can use either WebRequest or HttpClient.

NOTE: I have a consolidated branch containing the SVG, Async and HttpClient pull requests into one if preferred. Since each PR is based off of the mainline, it does take a little work to combine them. Let me know