/// <summary> /// Disconnect FTP client and free memory used /// </summary> public void Disconnect() { if (IsActiveFTPClient()) { _FTPClient.Disconnect(); } _FTPClient = null; }
/// <summary> /// 断开FTP /// </summary> public void DisConnect() { if (ftpClient != null) { if (ftpClient.IsConnected) { ftpClient.Disconnect(); } } }
public void Dispose() { if (ftp != null) { if (ftp.IsConnected) { ftp.Disconnect(); } ftp.Dispose(); ftp = null; } }
public void end() { _client.Disconnect(); }