mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-09 21:24:08 +00:00
[PR #671] Introduced IArchiveFactory #1155
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/671
State: closed
Merged: Yes
As agreed in #670 , I've introduced the
IArchiveFactoryinterface, with the bare minimum methods required to keep all the funcionality, and the factory implementations for each archive type.Also, added the
RegisterFactorymethod inArchiveFactoryand adjusted theOpenmethod to use the registered factories instead of the fixed list.remaining issues:
Not sure to which factory should I assign some extensions lik .LZ
In ArchiveFactory there's some more Open methods that still use the fixed list, I guess they should be redirected to the Open method that uses the factory collection.