Uh oh!
There was an error while loading. Please reload this page.
Enable list directory async for net framework - #1206
Conversation
| asyncResult.Update(offset); | ||
| uploadCallback?.Invoke(offset); | ||
| }); | ||
| { |
| var asyncResult = new SftpSynchronizeDirectoriesAsyncResult(asyncCallback, state); | ||
| ThreadAbstraction.ExecuteThread(() => | ||
| { |
| var writtenBytes = offset + (ulong) bytesRead; | ||
| _sftpSession.RequestWrite(handle, offset, buffer, offset: 0, bytesRead, wait: null, s => | ||
| { |
| </ItemGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" /> |
There was a problem hiding this comment.
Please make it conditional so that it only applies to TFMs that do not support IAsyncEnumerable<T> out-of-the-box.
There was a problem hiding this comment.
Thank you for your comment, good idea! Done.
Rob-Hague
commented
Oct 13, 2023
|
drieseng
commented
Oct 14, 2023
@Patrick-3000, thanks! |
* Enable list directory async for net framework (#1206) * Enable ListDirectoryAsync for .NET Framework * Removed (now) unused constant. * Remove placeholder tests (#1183) * Remove placeholder tests * Move Reverse perf test to benchmarks project --------- Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com> * Fix integration test after moving test projects --------- Co-authored-by: Patrick-3000 <38472350+Patrick-3000@users.noreply.github.com> Co-authored-by: Rob Hague <rh@johnstreetcapital.com>
SSH.NET.nuspec needs to be updated to add dependency Microsoft.Bcl.AsyncInterfaces 7.0.0 when target net462 and netstandard2.0. |
Rob-Hague
commented
Dec 1, 2023
Yes, IMO we should remove nuspec and AssemblyInfo and merge them into the csproj |
scott-xu
commented
Dec 2, 2023
I drafted a new PR #1256 |
WojciechNagorski
commented
Dec 29, 2023
The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1 |
The Nuget package Renci.SshNet is available for .NET Framework. However, if you call
ListDirectoryAsyncon theSftpClient, you will encounter aMethodNotFoundExceptiononly at runtime.