Class SshConnectionProviderExtensions
- Namespace
- SshSharp.Extensions.DependencyInjection
- Assembly
- SshSharp.Extensions.DependencyInjection.dll
SFTP on the shared connections of ISshConnectionProvider and ISshEndpoint.
public static class SshConnectionProviderExtensions
- Inheritance
-
SshConnectionProviderExtensions
- Inherited Members
Methods
- OpenSftpAsync(ISshConnectionProvider, string, CancellationToken)
Opens a new SFTP session on the shared connection to the endpoint
name, connecting first if it is down. The caller owns the session and disposes it; the connection stays the provider's. As the session factory ofSftpFileProviderorSftpFileSystem, it lets the adapter follow the shared connection: after a drop, the adapter's next session is opened on the new connection.
- OpenSftpAsync(ISshEndpoint, CancellationToken)
Opens a new SFTP session on the endpoint's shared connection, as OpenSftpAsync(ISshConnectionProvider, string, CancellationToken) does for its name.