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