Merge remote-tracking branch 'origin/release' into copilot/fix-async-only-stream-writes

This commit is contained in:
Adam Hathcock
2026-04-28 12:21:10 +01:00
17 changed files with 562 additions and 75 deletions

View File

@@ -5,14 +5,9 @@ using System.Threading.Tasks;
namespace SharpCompress.Test.Mocks;
public class AsyncOnlyStream : Stream
public class AsyncOnlyStream(Stream stream) : Stream
{
private readonly Stream _stream;
public AsyncOnlyStream(Stream stream)
{
_stream = stream ?? throw new ArgumentNullException(nameof(stream));
}
private readonly Stream _stream = stream ?? throw new ArgumentNullException(nameof(stream));
public override bool CanRead => _stream.CanRead;
public override bool CanSeek => _stream.CanSeek;