Sftp.BindAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
BindAsync(SshSession, Object)
Begins asynchronous Bind operation. Binds the Sftp object to an underlying SSH session. This makes it possible to run multiple SFTP sessions over a single SSH session. This can be used instead of Connect(String)/Login(String, String) methods.
Declaration
public Task BindAsync(SshSession session, object state = null)
Parameters
Type | Name | Description |
---|---|---|
SshSession | session | SSH session (already connected and authenticated). |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |