mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
Add ISftpClient interface to SftpClient (#197)
Add ISftpClient interface to **SftpClient for mocking and testing purposes. Fixes #193.
This commit is contained in:
@@ -1183,6 +1183,9 @@
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\SftpClient.cs">
|
||||
<Link>SftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISftpClient.cs">
|
||||
<Link>ISftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\Sftp\Flags.cs">
|
||||
<Link>Sftp\Flags.cs</Link>
|
||||
|
||||
@@ -1189,6 +1189,9 @@
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\SftpClient.cs">
|
||||
<Link>SftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISftpClient.cs">
|
||||
<Link>ISftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\Sftp\Flags.cs">
|
||||
<Link>Sftp\Flags.cs</Link>
|
||||
|
||||
@@ -381,6 +381,9 @@
|
||||
<Compile Include="..\Renci.SshNet\ISession.cs">
|
||||
<Link>ISession.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISftpClient.cs">
|
||||
<Link>ISftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISubsystemSession.cs">
|
||||
<Link>ISubsystemSession.cs</Link>
|
||||
</Compile>
|
||||
|
||||
@@ -1168,6 +1168,9 @@
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\SftpClient.cs">
|
||||
<Link>SftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISftpClient.cs">
|
||||
<Link>ISftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\Sftp\Flags.cs">
|
||||
<Link>Sftp\Flags.cs</Link>
|
||||
|
||||
@@ -358,6 +358,9 @@
|
||||
<Compile Include="..\Renci.SshNet\ISession.cs">
|
||||
<Link>ISession.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISftpClient.cs">
|
||||
<Link>ISftpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Renci.SshNet\ISubsystemSession.cs">
|
||||
<Link>ISubsystemSession.cs</Link>
|
||||
</Compile>
|
||||
@@ -1441,7 +1444,7 @@
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<UserProperties ProjectLinkerExcludeFilter="\\?desktop(\\.*)?$;\\?silverlight(\\.*)?$;\.desktop;\.silverlight;\.xaml;^service references(\\.*)?$;\.clientconfig;^web references(\\.*)?$" ProjectLinkReference="2f5f8c90-0bd1-424f-997c-7bc6280919d1" />
|
||||
<UserProperties ProjectLinkReference="2f5f8c90-0bd1-424f-997c-7bc6280919d1" ProjectLinkerExcludeFilter="\\?desktop(\\.*)?$;\\?silverlight(\\.*)?$;\.desktop;\.silverlight;\.xaml;^service references(\\.*)?$;\.clientconfig;^web references(\\.*)?$" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@ namespace Renci.SshNet
|
||||
/// <summary>
|
||||
/// Implementation of the SSH File Transfer Protocol (SFTP) over SSH.
|
||||
/// </summary>
|
||||
public class SftpClient : BaseClient
|
||||
public class SftpClient : BaseClient, ISftpClient
|
||||
{
|
||||
private static readonly Encoding Utf8NoBOM = new UTF8Encoding(false, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user