Skip to content

Commit 80c26e3

Browse files
authored
Minor corrections to #799 (#808)
1 parent a9064c4 commit 80c26e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/MiniExcel/MiniExcel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static async Task AddPictureAsync(string path, CancellationToken cancella
2626
}
2727

2828
[Zomp.SyncMethodGenerator.CreateSyncVersion]
29-
public static async Task AddPicture(Stream excelStream, CancellationToken cancellationToken = default, params MiniExcelPicture[] images)
29+
public static async Task AddPictureAsync(Stream excelStream, CancellationToken cancellationToken = default, params MiniExcelPicture[] images)
3030
{
3131
await MiniExcelPictureImplement.AddPictureAsync(excelStream, cancellationToken, images).ConfigureAwait(false);
3232
}
@@ -263,7 +263,7 @@ public async static Task<DataTable> QueryAsDataTableAsync(this Stream stream, bo
263263
var rows = provider.QueryAsync(false, sheetName, startCell, cancellationToken).ConfigureAwait(false);
264264

265265
var columnDict = new Dictionary<string, string>();
266-
await foreach (IDictionary<string, object> row in rows.WithCancellation(cancellationToken).ConfigureAwait(false))
266+
await foreach (IDictionary<string, object> row in rows)
267267
{
268268
if (first)
269269
{

src/MiniExcel/MiniExcelLibs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ Todo : https://github.com/mini-software/MiniExcel/projects/1?fullscreen=true</De
5656
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
5757
</ItemGroup>
5858
<ItemGroup>
59-
<PackageReference Include="Zomp.SyncMethodGenerator" Version="1.4.30" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
59+
<PackageReference Include="Zomp.SyncMethodGenerator" Version="1.4.32" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
6060
</ItemGroup>
6161
</Project>

0 commit comments

Comments
 (0)