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