From 2180df331899415a52b5dce9299dbd0445b1087c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 16 Jan 2026 10:09:54 +0000
Subject: [PATCH] Pass CancellationToken.None explicitly to OpenAsyncArchive
methods
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
---
src/SharpCompress/Factories/SevenZipFactory.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/SharpCompress/Factories/SevenZipFactory.cs b/src/SharpCompress/Factories/SevenZipFactory.cs
index d1793404..45149d7d 100644
--- a/src/SharpCompress/Factories/SevenZipFactory.cs
+++ b/src/SharpCompress/Factories/SevenZipFactory.cs
@@ -54,7 +54,7 @@ public class SevenZipFactory : Factory, IArchiveFactory, IMultiArchiveFactory
///
public IAsyncArchive OpenAsyncArchive(Stream stream, ReaderOptions? readerOptions = null) =>
- SevenZipArchive.OpenAsyncArchive(stream, readerOptions);
+ SevenZipArchive.OpenAsyncArchive(stream, readerOptions, CancellationToken.None);
///
public IArchive OpenArchive(FileInfo fileInfo, ReaderOptions? readerOptions = null) =>
@@ -62,7 +62,7 @@ public class SevenZipFactory : Factory, IArchiveFactory, IMultiArchiveFactory
///
public IAsyncArchive OpenAsyncArchive(FileInfo fileInfo, ReaderOptions? readerOptions = null) =>
- SevenZipArchive.OpenAsyncArchive(fileInfo, readerOptions);
+ SevenZipArchive.OpenAsyncArchive(fileInfo, readerOptions, CancellationToken.None);
#endregion
@@ -78,7 +78,7 @@ public class SevenZipFactory : Factory, IArchiveFactory, IMultiArchiveFactory
public IAsyncArchive OpenAsyncArchive(
IReadOnlyList streams,
ReaderOptions? readerOptions = null
- ) => SevenZipArchive.OpenAsyncArchive(streams, readerOptions);
+ ) => SevenZipArchive.OpenAsyncArchive(streams, readerOptions, CancellationToken.None);
///
public IArchive OpenArchive(