コード例 #1
0
ファイル: FTPClient.cs プロジェクト: tinygg/Tools.Net
 internal void CommandErrorControl(object client, FTPErrorEventArgs e)
 {
     if (CommandError != null)
         CommandError(this, e);
 }
コード例 #2
0
ファイル: FTPConnection.cs プロジェクト: tinygg/Tools.Net
 /// <summary>
 /// Test if the connection is still alive.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">Arguments</param>
 private void ftpClient_CommandError(object sender, FTPErrorEventArgs e)
 {
     isTransferringData = false;  // prevents close hanging while waiting for cancel
     log.Error("Command error", e.Exception);
     if (!ActiveClient.IsConnected)
     {
         try
         {
             Close(true, e.Exception);
         }
         catch
         {
         }
     }
 }