コード例 #1
0
ファイル: FtpClient.cs プロジェクト: avs009/gsf
 internal void OnFileTransferNotification(FtpAsyncResult transferResult)
 {
     if (FileTransferNotification != null)
         FileTransferNotification(this, new EventArgs<FtpAsyncResult>(transferResult));
 }
コード例 #2
0
ファイル: FtpFileTransferer.cs プロジェクト: avs009/gsf
 private void TransferThreadProc()
 {
     try
     {
         StartTransfer();
         m_transferResult = new FtpAsyncResult("Success.", FtpAsyncResult.Complete);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
     catch (FtpExceptionBase e)
     {
         m_transferResult = new FtpAsyncResult("Transfer fail: " + e.Message, FtpAsyncResult.Fail);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
 }