Refactor downloaders to use generic options and unify logic

Replaces specialized binary and HTML downloaders with a generic, options-driven UnitDownloader and UnitFragmentDownloader pattern. Introduces UnitDownloaderOptions and builder classes for flexible configuration, updates interfaces and method signatures to support progress reporting, and removes redundant binary-specific classes. Updates Playwright and Stealth downloaders to use the new generic base, and adds improved error handling and reporting. Also updates dependency versions and makes minor API consistency improvements across the Fluent and Models layers.
This commit is contained in:
qwsdcvghyu89
2025-09-29 21:27:56 +10:00
parent 8e60109f5e
commit 2958a26e4f
30 changed files with 621 additions and 422 deletions
+9
View File
@@ -51,4 +51,13 @@
<data name="resource_definition_invalid_states_count" xml:space="preserve">
<value>There must be at least one state in resource definition.</value>
</data>
<data name="unit_download_directory_nonexistant" xml:space="preserve">
<value>Could not open a filestream to a non-existant directory '{0}'.</value>
</data>
<data name="unit_download_invalid_memory_stream" xml:space="preserve">
<value>The memory stream was created with an invisible inner byte array.</value>
</data>
<data name="unit_downloader_limited_support" xml:space="preserve">
<value>The base unit downloader class only supports RawType's of string and ByteDocument.</value>
</data>
</root>