private void RaiseErrorEvent(FileSenderErrorArgs arg)
 {
     SendingError?.Invoke(arg);
     if (arg.IsCritical)
     {
         SenderThread?.Abort();
         TimerThread.Abort();
     }
 }
Exemple #2
0
 protected void StartSendThread()
 {
     m_sender = new SenderThread(m_tcpClient.GetStream(), sendMsgs);
     m_sender.Run();
 }