示例#1
0
文件: Session.cs 项目: avs009/gsf
 internal void OnFileTransferNotification(AsyncResult TransferResult)
 {
     if (FileTransferNotification != null)
         FileTransferNotification(TransferResult);
 }
示例#2
0
 private void TransferThreadProc()
 {
     try
     {
         StartTransfer();
         m_transferResult = new AsyncResult("Success.", AsyncResult.Complete);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
     catch (ExceptionBase e)
     {
         m_transferResult = new AsyncResult("Transfer fail: " + e.Message, AsyncResult.Fail);
         m_session.Host.OnFileTransferNotification(m_transferResult);
     }
 }