feat: add Empty method and fix link handling

Added a static `Empty` method to `DownloadEnumerable` for
creating an empty instance. Updated link handling in
`SequentialDownloader` to use `AbsoluteUri` instead of
`ToString()`, ensuring correct link representation.

These changes improve usability and ensure consistency in
link formatting.
This commit is contained in:
qwsdcvghyu89
2025-06-26 14:51:11 +03:00
parent 518b600d07
commit 3569ee0e87
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ namespace Beam {
/// Produces a deep copy whose <see cref="Segments"/> and contained collections are detached from the original.
/// </summary>
public SourceLinkBuilder Clone()
=> new SourceLinkBuilder(Protocol, Host) {
=> new SourceLinkBuilder(Host, Protocol) {
Segments = [.. Segments.Select(static x => x.Clone())]
};