6 Commits

Author SHA1 Message Date
mus65 e1520eda21 Migrate solution to slnx format (#1749)
see https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/
2025-12-23 10:29:37 +00:00
mus65 6e42d1fcd3 gitattributes: set diff=csharp on cs files (#1393) 2024-05-06 21:20:51 +02:00
Ferenc Vizkeleti 2d0e03b8ce Added SshCommand.InputStream to allow writing to stdin of SshCommand (#1293)
* Making all unit tests pass locally.
Excluded MD5 tests on net462 because I get System.InvalidOperationException: 'This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.'
SshdConfig: do not throw for "Include", just do nothing.
Modified failing dos2unix parameters in Dockerfile.TestServer.
Forceing LF line ending for key files used by integration tests, otherwise using them causes error.
SftpClientTest.Test_Sftp_Multiple_Async_Upload_And_Download_10Files_5MB_Each times out for maxFiles=10, decreasing to 2 to make the test pass.

* Added SshCommand.InputStream.

* Added an integration test for SshCommand.InputStream.

* Reverting changes made to unit tests unrelated to this PR.

* Moved ChannelInputStream's EOF sending from Write to Dispose. Replace SshCommand.InputStream with CreateInputStream to emphasise that a (disposable) resource is created here. EndExecute also closes the _inputStream to make sure that EOF is sent (in case the user forgot to dispose the input stream). Added more unit tests: sending the input one byte at a time, not disposing the input stream, calling CreateInputStream before BeginExecute or AfterEndExecute throws exception.

* Fixing review comments.

* Fix build error after #1286

---------

Co-authored-by: ferenc.vizkeleti <ferenc.vizkeleti@innopay.hu>
Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com>
Co-authored-by: Rob Hague <rob.hague00@gmail.com>
2024-02-06 18:02:19 +01:00
Robert Hague 6ec6dc13fd Remove byte order mark, set eol=lf in key files 2023-11-11 17:39:33 +01:00
Matthew Vukomanovic d43423896c Actually normallise the End of Lines
Really reset the eol's in the repository by following the info at
git-scm.com/docs/gitattributes

Following the example there the following commands were run:
rm .git/index
git reset
git add -u
git commit
2016-06-22 18:48:59 +08:00
drieseng 42c7466a5d Include a .gitattribute file to make the line endings stay consistent 2016-06-17 12:22:51 +02:00