From 8e9a45c30122d234b70c72653777856240e77d1c Mon Sep 17 00:00:00 2001 From: bezzad Date: Tue, 19 Dec 2023 08:35:11 +0330 Subject: [PATCH] added parameterless constructor for deserialization in to ConcurrentStream --- src/Downloader/ConcurrentStream.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Downloader/ConcurrentStream.cs b/src/Downloader/ConcurrentStream.cs index 38652f8..e2fa3f7 100644 --- a/src/Downloader/ConcurrentStream.cs +++ b/src/Downloader/ConcurrentStream.cs @@ -66,7 +66,9 @@ public long MaxMemoryBufferBytes } // parameterless constructor for deserialization - public ConcurrentStream(ILogger logger = null) : this(0, logger) { } + public ConcurrentStream() : this(0, null) { } + + public ConcurrentStream(ILogger logger) : this(0, logger) { } public ConcurrentStream(long maxMemoryBufferBytes = 0, ILogger logger = null) : base(logger) {