<PackageReference Include="SSH.NET" Version="2020.0.2" />

Renci.SshNet.IServiceFactory

interface IServiceFactory
Factory for creating new services.
namespace Renci.SshNet { internal interface IServiceFactory { IClientAuthentication CreateClientAuthentication(); ISession CreateSession(ConnectionInfo connectionInfo, ISocketFactory socketFactory); ISftpSession CreateSftpSession(ISession session, int operationTimeout, Encoding encoding, ISftpResponseFactory sftpMessageFactory); PipeStream CreatePipeStream(); IKeyExchange CreateKeyExchange(IDictionary<string, Type> clientAlgorithms, string[] serverAlgorithms); ISftpFileReader CreateSftpFileReader(string fileName, ISftpSession sftpSession, uint bufferSize); ISftpResponseFactory CreateSftpResponseFactory(); ShellStream CreateShellStream(ISession session, string terminalName, uint columns, uint rows, uint width, uint height, IDictionary<TerminalModes, uint> terminalModeValues, int bufferSize); IRemotePathTransformation CreateRemotePathDoubleQuoteTransformation(); IConnector CreateConnector(IConnectionInfo connectionInfo, ISocketFactory socketFactory); IProtocolVersionExchange CreateProtocolVersionExchange(); ISocketFactory CreateSocketFactory(); } }