Exemplo n.º 1
0
 internal void OnFileTransferNotification(FtpAsyncResult transferResult)
 {
     if ((object)FileTransferNotification != null)
     {
         FileTransferNotification(this, new EventArgs <FtpAsyncResult>(transferResult));
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 internal void OnFileTransferNotification(FtpAsyncResult transferResult)
 {
     if ((object)FileTransferNotification != null)
         FileTransferNotification(this, new EventArgs<FtpAsyncResult>(transferResult));
 }