Closed
Description
Version: 2023.0.0
Problem
Directly invoking ISftpClient.Dispose() results in the following error:
[CS0121] The call is ambiguous between the following methods or properties: 'Renci.SshNet.IBaseClient.Dispose()' and 'System.IDisposable.Dispose()'
The following displays sample code to reproduce the compile time error.
ISftpClient sftpClient = new SftpClient(host, port, username, password);
sftpClient.Dispose(); //This line results in the [CS0121] error
Current Workaround
ISftpClient sftpClient = new SftpClient(host, port, username, password);
((IDisposable)sftpClient).Dispose();
Metadata
Metadata
Assignees
Labels
No labels