protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { var sftpSession = _sftpSession; if (sftpSession != null) { _sftpSession = null; sftpSession.Dispose(); } } } }
protected override void Dispose(bool disposing) { if (disposing) { _client.Dispose(); } }